17#include "moc_qgseffectdrawmodecombobox.cpp"
26 QList<QPair<QgsPaintEffect::DrawMode, QString>> modes;
31 for (
int i = 0; i < modes.count(); i++ )
34 const QString name = modes.at( i ).second;
35 addItem( name, QVariant( (
int ) mode ) );
46 const int idx = findData( QVariant( (
int )
drawMode ) );
47 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.