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 );
void setDrawMode(QgsPaintEffect::DrawMode drawMode)
Sets the currently selected draw mode for the combo box.
QgsPaintEffect::DrawMode drawMode() const
Returns the currently selected draw mode for the combo box.
QgsEffectDrawModeComboBox(QWidget *parent SIP_TRANSFERTHIS=nullptr)
DrawMode
Drawing modes for effects.
@ Render
The result of the effect is rendered on the destination, but does not affect subsequent effects in th...
@ Modifier
The result of the effect is not rendered, but is passed on to following effects in the stack.
@ ModifyAndRender
The result of the effect is both rendered and passed on to subsequent effects in the stack.