54 cfg.insert(
"Layer", configElement.
attribute(
"Layer" ) );
55 cfg.insert(
"Key", configElement.
attribute(
"Key" ) );
56 cfg.insert(
"Value", configElement.
attribute(
"Value" ) );
57 cfg.insert(
"FilterExpression", configElement.
attribute(
"FilterExpression" ) );
58 cfg.insert(
"OrderByValue", configElement.
attribute(
"OrderByValue" ) );
59 cfg.insert(
"AllowMulti", configElement.
attribute(
"AllowMulti" ) );
60 cfg.insert(
"AllowNull", configElement.
attribute(
"AllowNull" ) );
61 cfg.insert(
"UseCompleter", configElement.
attribute(
"UseCompleter" ) );
72 configElement.
setAttribute(
"Layer", config.value(
"Layer" ).toString() );
73 configElement.
setAttribute(
"Key", config.value(
"Key" ).toString() );
74 configElement.
setAttribute(
"Value", config.value(
"Value" ).toString() );
75 configElement.
setAttribute(
"FilterExpression", config.value(
"FilterExpression" ).toString() );
76 configElement.
setAttribute(
"OrderByValue", config.value(
"OrderByValue" ).toBool() );
77 configElement.
setAttribute(
"AllowMulti", config.value(
"AllowMulti" ).toBool() );
78 configElement.
setAttribute(
"AllowNull", config.value(
"AllowNull" ).toBool() );
79 configElement.
setAttribute(
"UseCompleter", config.value(
"UseCompleter" ).toBool() );
98 if ( config.value(
"AllowMulti" ).toBool() )
105 if ( keyList.
contains( item.first.toString() ) )
107 valueList << item.second;
118 return settings.
value(
"qgis/nullValue",
"NULL" ).
toString();
123 if ( item.first == value )
141 Q_UNUSED( fieldIdx );
144 return Qt::AlignLeft;
QString & append(QChar ch)
QString attribute(const QString &name, const QString &defValue) const
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
QString & prepend(QChar ch)
bool contains(const QString &str, Qt::CaseSensitivity cs) const
QString join(const QString &separator) const
QString & remove(int position, int n)
QVariantMap QgsEditorWidgetConfig
Holds a set of configuration parameters for a editor widget wrapper.
void setAttribute(const QString &name, const QString &value)
QVariant value(const QString &key, const QVariant &defaultValue) const
Represents a vector layer which manages a vector based data sets.
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const