diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-04-13 07:42:54 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-04-13 07:42:54 (GMT) |
commit | 0fbd3cb10bbaf85179e095f9da212ba94308ba30 (patch) | |
tree | 49dc83038209f577e185f5d57dc58a0756814c95 | |
parent | b9f86cea356e4fcb25305c337d5795a14393cb84 (diff) | |
parent | acaaa87b5ff35981d96a4ed9666f436822ccdb3f (diff) | |
download | Qt-0fbd3cb10bbaf85179e095f9da212ba94308ba30.zip Qt-0fbd3cb10bbaf85179e095f9da212ba94308ba30.tar.gz Qt-0fbd3cb10bbaf85179e095f9da212ba94308ba30.tar.bz2 |
Merge branch '4.7' of git://scm.dev.nokia.troll.no/qt/qt-doc-team
* '4.7' of git://scm.dev.nokia.troll.no/qt/qt-doc-team:
qdoc: Last commit before merge into master.
-rw-r--r-- | tools/qdoc3/config.cpp | 27 | ||||
-rw-r--r-- | tools/qdoc3/config.h | 1 |
2 files changed, 27 insertions, 1 deletions
diff --git a/tools/qdoc3/config.cpp b/tools/qdoc3/config.cpp index 838f6ac..eaec327 100644 --- a/tools/qdoc3/config.cpp +++ b/tools/qdoc3/config.cpp @@ -48,7 +48,7 @@ #include <QFile> #include <QTemporaryFile> #include <QTextStream> - +#include <qdebug.h> #include "config.h" #include <stdlib.h> @@ -175,6 +175,7 @@ Config::Config(const QString& programName) } /*! + The destructor has nothing special to do. */ Config::~Config() { @@ -202,6 +203,30 @@ void Config::load(const QString& fileName) } /*! + Writes the qdoc configuration data to the named file. + The previous contents of the file are overwritten. + */ +void Config::unload(const QString& fileName) +{ + + QStringMultiMap::ConstIterator v = stringValueMap.begin(); + while (v != stringValueMap.end()) { + qDebug() << v.key() << " = " << v.value(); +#if 0 + if (v.key().startsWith(varDot)) { + QString subVar = v.key().mid(varDot.length()); + int dot = subVar.indexOf(QLatin1Char('.')); + if (dot != -1) + subVar.truncate(dot); + t.insert(subVar,v.value()); + } +#endif + ++v; + } + qDebug() << "fileName:" << fileName; +} + +/*! Joins all the strings in \a values into a single string with the individual \a values separated by ' '. Then it inserts the result into the string list map with \a var as the key. diff --git a/tools/qdoc3/config.h b/tools/qdoc3/config.h index 8e19ed2..94f0060 100644 --- a/tools/qdoc3/config.h +++ b/tools/qdoc3/config.h @@ -63,6 +63,7 @@ class Config ~Config(); void load(const QString& fileName); + void unload(const QString& fileName); void setStringList(const QString& var, const QStringList& values); const QString& programName() const { return prog; } |