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 )
}
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:
......
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