29 return mComboBox->itemData( mComboBox->currentIndex() );
34 return new QComboBox( parent );
39 mComboBox = qobject_cast<QComboBox*>( editor );
47 for (
int i = 0; i < categories.size(); i++ )
49 QString label = categories[i].label();
50 QString
value = categories[i].value().toString();
51 if ( label.isEmpty() )
54 mComboBox->addItem( label, value );
58 connect( mComboBox, SIGNAL( currentIndexChanged(
int ) ),
this, SLOT(
valueChanged() ) );
64 mComboBox->setCurrentIndex( mComboBox->findData( value ) );