From 6f85cf97170630c9ed0699b5960d21c341b682dd Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Sat, 13 Sep 2008 16:03:36 -0400 Subject: [PATCH] Qt: sorry guys, record works very fine actually... --- 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 f99a660991..4edc1271f9 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 9894185dd1..85d50e1ce8 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; -- 2.39.2