[vlc-devel] commit: Qt: sorry guys, record works very fine actually... ( Jean-Philippe Andre )

git version control git at videolan.org
Sat Sep 13 22:01:42 CEST 2008


vlc | branch: master | Jean-Philippe Andre <jpeg at via.ecp.fr> | Sat Sep 13 16:03:36 2008 -0400| [6f85cf97170630c9ed0699b5960d21c341b682dd] | committer: Jean-Philippe Andre 

Qt: sorry guys, record works very fine actually...

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6f85cf97170630c9ed0699b5960d21c341b682dd
---

 modules/gui/qt4/components/interface_widgets.cpp |    8 +-------
 modules/gui/qt4/components/interface_widgets.hpp |    5 +----
 2 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index f99a660..4edc127 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -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();
diff --git a/modules/gui/qt4/components/interface_widgets.hpp b/modules/gui/qt4/components/interface_widgets.hpp
index 9894185..85d50e1 100644
--- a/modules/gui/qt4/components/interface_widgets.hpp
+++ b/modules/gui/qt4/components/interface_widgets.hpp
@@ -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;




More information about the vlc-devel mailing list