30 v = mComboBox->itemData( mComboBox->currentIndex() );
37 return new QComboBox( parent );
42 mComboBox = qobject_cast<QComboBox*>( editor );
47 QgsEditorWidgetConfig::ConstIterator it = cfg.constBegin();
49 while ( it != cfg.constEnd() )
51 mComboBox->addItem( it.key(), it.value() );
54 connect( mComboBox, SIGNAL( currentIndexChanged(
int ) ),
this, SLOT(
valueChanged() ) );
61 mComboBox->setCurrentIndex( mComboBox->findData( value ) );