Commit 942aa9c3 authored by Antoine Cellerier's avatar Antoine Cellerier

Add special case for category labels.

parent 7873bfc0
...@@ -689,12 +689,20 @@ void ExtV4l2::Refresh( void ) ...@@ -689,12 +689,20 @@ void ExtV4l2::Refresh( void )
} }
case VLC_VAR_VOID: case VLC_VAR_VOID:
{ {
QPushButton *button = new QPushButton( psz_label, box ); if( i_type & VLC_VAR_ISCOMMAND )
button->setObjectName( psz_var ); {
QPushButton *button = new QPushButton( psz_label, box );
button->setObjectName( psz_var );
CONNECT( button, clicked( bool ), this, CONNECT( button, clicked( bool ), this,
ValueChange( bool ) ); ValueChange( bool ) );
layout->addWidget( button ); layout->addWidget( button );
}
else
{
QLabel *label = new QLabel( psz_label, box );
layout->addWidget( label );
}
break; break;
} }
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment