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 );