summaryrefslogtreecommitdiffstats
path: root/src/qdoc/config.h
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2019-08-01 14:59:58 +0200
committerPaul Wicking <paul.wicking@qt.io>2019-08-14 21:12:05 +0200
commit7498554557c0ead8421cdabbc6d99e2342934041 (patch)
treeb4e1594d47fcc646491d0be36a3bcedd7e479d3c /src/qdoc/config.h
parent411e75b05eb391bd39d642838bf9bc7914f13f77 (diff)
QDoc: Further detangle QDocCommandLineParser::process()
This change removes QDocCommandLineParser's dependency on Generator and Location. The calls to their static methods are moved to a new helper function in main.cpp, postProcess(). Thus, QDocCommandLineParser no longer sets values in Generator or Location. QDir was included via Generator, and is therefore added as an include in QDocCommandLineParser. This change further clears up QDocCommandLineParser's external dependencies, to make it easier to test the class separately. Task-number: QTBUG-71165 Task-number: QTBUG-71176 Change-Id: I2a024d57d50f84f9271672b6a753e677b748f1b6 Reviewed-by: Martin Smith <martin.smith@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/qdoc/config.h')
-rw-r--r--src/qdoc/config.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qdoc/config.h b/src/qdoc/config.h
index 3586451d9..52ce3d946 100644
--- a/src/qdoc/config.h
+++ b/src/qdoc/config.h
@@ -77,7 +77,7 @@ public:
Config(const QString &programName);
~Config();
- static bool debug_;
+ bool getDebug() const { return debug_; }
void load(const QString &fileName);
void setStringList(const QString &var, const QStringList &values);
@@ -142,6 +142,7 @@ public:
static QSet<QString> overrideOutputFormats;
private:
+ static bool debug_;
static bool isMetaKeyChar(QChar ch);
void load(Location location, const QString &fileName);