25 QList < QPair<QgsPaintEffect::DrawMode, QString> > modes;
30 for (
int i = 0; i < modes.count(); i++ )
33 QString name = modes.at( i ).second;
34 addItem( name, QVariant( (
int ) mode ) );
45 int idx = findData( QVariant( (
int ) drawMode ) );
46 setCurrentIndex( idx == -1 ? 0 : idx );
QgsPaintEffect::DrawMode drawMode() const
Returns the currently selected draw mode for the combo box.
The result of the effect is rendered on the destination, but does not affect subsequent effects in th...
The result of the effect is both rendered and passed on to subsequent effects in the stack...
QgsEffectDrawModeComboBox(QWidget *parent SIP_TRANSFERTHIS=nullptr)
The result of the effect is not rendered, but is passed on to following effects in the stack...
DrawMode
Drawing modes for effects.
void setDrawMode(QgsPaintEffect::DrawMode drawMode)
Sets the currently selected draw mode for the combo box.