]> git.sesse.net Git - vlc/commitdiff
Qt: remove unneeded code.
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 16 Jan 2009 16:59:10 +0000 (17:59 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 16 Jan 2009 17:44:39 +0000 (18:44 +0100)
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.hpp

index 60747bee698e8baeda5e560fe5c57b8f129a5a72..d81ec55474c3e6ef9f8a2fc9e879cfb915e76fb7 100644 (file)
@@ -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()
index 39e2baf42a1d6310d63ff9c0fdd938acb18bba88..90cb3fccb7625a20acce0b9ac33cdb43b23393ea 100644 (file)
@@ -192,7 +192,6 @@ public:
     virtual int getType() { return CONFIG_ITEM_BOOL; }
 private:
     QCheckBox *checkbox;
-    QLabel *label;
     void finish();
 };