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 ),
 
   73 void QgsClassificationWidgetWrapper::updateValues( 
const QVariant &value, 
const QVariantList & )
 
   75   mComboBox->setCurrentIndex( mComboBox->findData( 
value ) );
 
const QgsCategoryList & categories() const
Returns a list of all categories recognized by the renderer.
Represents a vector layer which manages a vector based data sets.
QgsFeatureRenderer * renderer()
Returns the feature renderer used for rendering the features in the layer in 2D map views.
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.
QList< QgsRendererCategory > QgsCategoryList