From: Antoine Cellerier Date: Sat, 5 Jan 2008 17:43:23 +0000 (+0000) Subject: Add special case for category labels. X-Git-Tag: 0.9.0-test0~3630 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=942aa9c36b668086f1134444d1ea92a69b619eab;p=vlc Add special case for category labels. --- diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp index 3c6aab706a..bb5d54f961 100644 --- a/modules/gui/qt4/components/extended_panels.cpp +++ b/modules/gui/qt4/components/extended_panels.cpp @@ -689,12 +689,20 @@ void ExtV4l2::Refresh( void ) } case VLC_VAR_VOID: { - QPushButton *button = new QPushButton( psz_label, box ); - button->setObjectName( psz_var ); + if( i_type & VLC_VAR_ISCOMMAND ) + { + QPushButton *button = new QPushButton( psz_label, box ); + button->setObjectName( psz_var ); - CONNECT( button, clicked( bool ), this, - ValueChange( bool ) ); - layout->addWidget( button ); + CONNECT( button, clicked( bool ), this, + ValueChange( bool ) ); + layout->addWidget( button ); + } + else + { + QLabel *label = new QLabel( psz_label, box ); + layout->addWidget( label ); + } break; } default: