]> git.sesse.net Git - vlc/commitdiff
Qt: sorry guys, record works very fine actually...
authorJean-Philippe Andre <jpeg@via.ecp.fr>
Sat, 13 Sep 2008 20:03:36 +0000 (16:03 -0400)
committerJean-Philippe Andre <jpeg@via.ecp.fr>
Sat, 13 Sep 2008 20:03:36 +0000 (16:03 -0400)
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.hpp

index f99a660991705961ef22f537569a3d233c983f23..4edc1271f91c44feda4f082077a18eb5f04039f4 100644 (file)
@@ -350,13 +350,11 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i, bool b_fsCreation = f
 #endif
 
     /* Record Button */
-#if 0
     recordButton = new QPushButton;
     setupSmallButton( recordButton );
     advLayout->addWidget( recordButton );
     BUTTON_SET_ACT_I( recordButton, "", record,
             qtr( "Record" ), record() );
-#endif
 
     /* Snapshot Button */
     snapshotButton = new QPushButton;
@@ -376,19 +374,16 @@ void AdvControlsWidget::enableInput( bool enable )
     {
         input_item_t *p_item = input_GetItem( THEMIM->getInput() );
         i_input_id = p_item->i_id;
-#if 0
+
         recordButton->setVisible( var_GetBool( THEMIM->getInput(), "can-record" ) );
     }
     else
     {
         recordButton->setVisible( false );
-#endif
     }
 
     ABButton->setEnabled( enable );
-#if 0
     recordButton->setEnabled( enable );
-#endif
 
     if( enable && ( i_last_input_id != i_input_id ) )
     {
@@ -469,7 +464,6 @@ void AdvControlsWidget::AtoBLoop( float f_pos, int i_time, int i_length )
     }
 }
 
-// TODO: On-the-fly record needs to be reimplemented
 void AdvControlsWidget::record()
 {
     input_thread_t *p_input = THEMIM->getInput();
index 9894185dd1412e2ee066f4a9f745f26079302f12..85d50e1ce8102b8250869c84f100231a662a6d90 100644 (file)
@@ -133,10 +133,7 @@ public:
 
 private:
     intf_thread_t *p_intf;
-#if 0
-    QPushButton *recordButton;
-#endif
-    QPushButton *ABButton;
+    QPushButton *recordButton, *ABButton;
     QPushButton *snapshotButton, *frameButton;
 
     static mtime_t timeA, timeB;