41 QMap<QString, QVariant> cfg;
43 cfg.insert(
"Style", configElement.attribute(
"Style" ) );
44 cfg.insert(
"Min", configElement.attribute(
"Min" ).toInt() );
45 cfg.insert(
"Max", configElement.attribute(
"Max" ).toInt() );
46 cfg.insert(
"Step", configElement.attribute(
"Step" ).toInt() );
47 cfg.insert(
"AllowNull", configElement.attribute(
"AllowNull" ) ==
"1" );
49 if ( configElement.hasAttribute(
"Suffix" ) )
51 cfg.insert(
"Suffix", configElement.attribute(
"Suffix" ) );
63 configElement.setAttribute(
"Style", config[
"Style"].toString() );
64 configElement.setAttribute(
"Min", config[
"Min"].toInt() );
65 configElement.setAttribute(
"Max", config[
"Max"].toInt() );
66 configElement.setAttribute(
"Step", config[
"Step"].toInt() );
67 configElement.setAttribute(
"AllowNull", config[
"AllowNull"].toBool() );
68 if ( config.contains(
"Suffix" ) )
70 configElement.setAttribute(
"Suffix", config[
"Suffix"].toString() );
74 bool QgsRangeWidgetFactory::isFieldSupported(
QgsVectorLayer* vl,
int fieldIdx )
78 case QVariant::LongLong:
79 case QVariant::Double: