44 QDomNodeList nodes = configElement.elementsByTagName(
"value" );
46 for (
unsigned int i = 0; i < nodes.length(); ++i )
48 QDomElement elem = nodes.at( i ).toElement();
49 cfg.insert( elem.attribute(
"key" ), elem.attribute(
"value" ) );
60 QgsEditorWidgetConfig::ConstIterator it = config.constBegin();
62 while ( it != config.constEnd() )
64 QDomElement elem = doc.createElement(
"value" );
66 elem.setAttribute(
"key", it.key() );
67 elem.setAttribute(
"value", it.value().toString() );
69 configElement.appendChild( elem );
81 return config.key( value, QVariant( QString(
"(%1)" ).arg( value.toString() ) ).toString() );