28 #if defined(QTCREATOR_UTILS_LIB)
29 # define XMLCONFIG_EXPORT Q_DECL_EXPORT
31 # define XMLCONFIG_EXPORT Q_DECL_IMPORT
34 #include <QtCore/qglobal.h>
36 #include <QDomElement>
45 static bool readXmlFile(QIODevice &device, QSettings::SettingsMap &map);
46 static bool writeXmlFile(QIODevice &device,
const QSettings::SettingsMap &map);
49 static QString rootName;
51 static void handleNode(QDomElement* node, QSettings::SettingsMap &map, QString path =
"");
52 static QSettings::SettingsMap settingsToMap(QSettings& qs);
53 static QString variantToString(
const QVariant &v);
54 static QVariant stringToVariant(
const QString &
s);
55 static QStringList splitArgs(
const QString &
s,
int idx);
static const QSettings::Format XmlSettingsFormat