Commit effc65cc authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: provide overloaded checkbox_list method

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 632a8ab5
......@@ -741,6 +741,22 @@ void ModuleListConfigControl::checkbox_lists( module_t *p_parser )
cbl->checkBox->setChecked( true );
}
void ModuleListConfigControl::checkbox_lists( QString label, QString help, const char* psz_module )
{
QCheckBox *cb = new QCheckBox( label );
checkBoxListItem *cbl = new checkBoxListItem;
CONNECT( cb, stateChanged( int ), this, onUpdate() );
if( !help.isEmpty() )
cb->setToolTip( formatTooltip( help ) );
cbl->checkBox = cb;
cbl->psz_module = strdup( psz_module );
modules.append( cbl );
if( p_item->value.psz && strstr( p_item->value.psz, cbl->psz_module ) )
cbl->checkBox->setChecked( true );
}
void ModuleListConfigControl::finish( bool bycat )
{
......
......@@ -395,6 +395,7 @@ public slots:
private:
void finish( bool );
void checkbox_lists(module_t*);
void checkbox_lists( QString, QString, const char* );
QList<checkBoxListItem*> modules;
QGroupBox *groupBox;
QLineEdit *text;
......
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