From: Jean-Baptiste Kempf Date: Fri, 16 Jan 2009 16:59:10 +0000 (+0100) Subject: Qt: remove unneeded code. X-Git-Tag: 1.0.0-pre1~1318 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=23f5a2f25e35bb5a45fe61fce23e82d8b2ff445c;p=vlc Qt: remove unneeded code. --- diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp index 60747bee69..d81ec55474 100644 --- a/modules/gui/qt4/components/preferences_widgets.cpp +++ b/modules/gui/qt4/components/preferences_widgets.cpp @@ -998,7 +998,7 @@ BoolConfigControl::BoolConfigControl( vlc_object_t *_p_this, VIntConfigControl( _p_this, _p_item ) { checkbox = _checkbox; - label = _label; + VLC_UNUSED( _label ); finish(); } @@ -1007,8 +1007,6 @@ void BoolConfigControl::finish() checkbox->setCheckState( p_item->value.i == true ? Qt::Checked : Qt::Unchecked ); checkbox->setToolTip( formatTooltip(qtr(p_item->psz_longtext)) ); - if( label ) - label->setToolTip( formatTooltip(qtr(p_item->psz_longtext)) ); } int BoolConfigControl::getValue() diff --git a/modules/gui/qt4/components/preferences_widgets.hpp b/modules/gui/qt4/components/preferences_widgets.hpp index 39e2baf42a..90cb3fccb7 100644 --- a/modules/gui/qt4/components/preferences_widgets.hpp +++ b/modules/gui/qt4/components/preferences_widgets.hpp @@ -192,7 +192,6 @@ public: virtual int getType() { return CONFIG_ITEM_BOOL; } private: QCheckBox *checkbox; - QLabel *label; void finish(); };