From: Jean-Baptiste Kempf Date: Fri, 3 Sep 2010 20:34:39 +0000 (+0200) Subject: Qt: extended panels, remove last tab and simplify code X-Git-Tag: 1.2.0-pre1~5329 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2152eabca9bbd403e99dca5e3f46ae3ebf801525;p=vlc Qt: extended panels, remove last tab and simplify code --- diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp index 51952fd121..2c15dfa7aa 100644 --- a/modules/gui/qt4/components/extended_panels.cpp +++ b/modules/gui/qt4/components/extended_panels.cpp @@ -73,7 +73,7 @@ private: }; #endif -QString ModuleFromWidgetName( QObject *obj ) +const QString ModuleFromWidgetName( QObject *obj ) { return obj->objectName().replace( "Enable","" ); } @@ -240,10 +240,6 @@ ExtVideo::ExtVideo( intf_thread_t *_p_intf, QTabWidget *_parent ) : ui.cropRightPx, setDisabled( bool ) ); } -ExtVideo::~ExtVideo() -{ -} - void ExtVideo::cropChange() { if( ui.topBotCropSync->isChecked() ) @@ -362,12 +358,6 @@ void ExtVideo::ChangeVFiltersString( const char *psz_name, bool b_add ) } /* Vout is not kept, so put that in the config */ config_PutPsz( p_intf, psz_filter_type, psz_string ); - if( !strcmp( psz_filter_type, "video-filter" ) ) - ui.videoFilterText->setText( psz_string ); - else if( !strcmp( psz_filter_type, "vout-filter" ) ) - ui.voutFilterText->setText( psz_string ); - else if( !strcmp( psz_filter_type, "sub-filter" ) ) - ui.subpictureFilterText->setText( psz_string ); /* Try to set on the fly */ p_vout = THEMIM->getVout(); @@ -646,11 +636,6 @@ ExtV4l2::ExtV4l2( intf_thread_t *_p_intf, QWidget *_parent ) box = NULL; } -ExtV4l2::~ExtV4l2() -{ - delete box; -} - void ExtV4l2::showEvent( QShowEvent *event ) { QWidget::showEvent( event ); diff --git a/modules/gui/qt4/components/extended_panels.hpp b/modules/gui/qt4/components/extended_panels.hpp index c7b751d1f5..89721a47bb 100644 --- a/modules/gui/qt4/components/extended_panels.hpp +++ b/modules/gui/qt4/components/extended_panels.hpp @@ -49,7 +49,6 @@ class ExtVideo: public QObject friend class ExtendedDialog; public: ExtVideo( struct intf_thread_t *, QTabWidget * ); - virtual ~ExtVideo(); /*void gotoConf( QObject* );*/ private: Ui::ExtVideoWidget ui; @@ -71,7 +70,6 @@ class ExtV4l2 : public QWidget Q_OBJECT public: ExtV4l2( intf_thread_t *, QWidget * ); - virtual ~ExtV4l2(); virtual void showEvent( QShowEvent *event ); diff --git a/modules/gui/qt4/ui/video_effects.ui b/modules/gui/qt4/ui/video_effects.ui index 1c4375f853..f5f4436c13 100644 --- a/modules/gui/qt4/ui/video_effects.ui +++ b/modules/gui/qt4/ui/video_effects.ui @@ -7,7 +7,7 @@ 0 0 619 - 280 + 308 @@ -1324,57 +1324,6 @@ - - - Advanced video filter controls - - - - - - - - - Subpicture filters - - - - - - - - - - Video filters - - - - - - - Vout filters - - - - - - - Reset - - - - - - - Update - - - - - - - - logoEnable @@ -1442,11 +1391,6 @@ brightnessSlider contrastSlider hueSlider - filtersResetButton - videoFilterText - filtersUpdateButton - subpictureFilterText - voutFilterText adjustEnable transformEnable brightnessThresholdCheck