29 return mComboBox->currentData();
39 return new QComboBox( parent );
44 mComboBox = qobject_cast<QComboBox *>( editor );
52 for (
int i = 0; i < categories.size(); i++ )
54 QString label = categories[i].label();
55 QString
value = categories[i].value().toString();
56 if ( label.isEmpty() )
59 mComboBox->addItem( label, value );
63 connect( mComboBox,
static_cast<void ( QComboBox::* )(
int )
>( &QComboBox::currentIndexChanged ),
75 mComboBox->setCurrentIndex( mComboBox->findData( value ) );
QList< QgsRendererCategory > QgsCategoryList
const QgsCategoryList & categories() const
QgsFeatureRenderer * renderer()
Returns renderer.
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.
Represents a vector layer which manages a vector based data sets.