diff options
author | Martin Smith <martin.smith@digia.com> | 2012-10-25 14:01:11 +0200 |
---|---|---|
committer | Martin Smith <martin.smith@digia.com> | 2012-10-25 14:19:53 +0200 |
commit | aca24f114627b66e902b4621326cf2b8bc8dbcf6 (patch) | |
tree | ac2ad363e58085bbe7f512cc2b5bfaf8833a1676 /src/tools/qdoc/location.h | |
parent | 34d2a7e6b68cfff59c29018b4aea1a7af38512da (diff) |
qdoc: Adding the -log-progress option
qdoc now sends progress log messages to stderr
only if -log-progress appears on the command line.
The progress messages are not printed to stderr
if -log-progress is not used. i.e., -log-progress
is off by default.
Task number: QTBUG-27707
Change-Id: Id605d943506ab38639730bf16473b156d061dc53
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Reviewed-by: Martin Smith <martin.smith@digia.com>
Diffstat (limited to 'src/tools/qdoc/location.h')
-rw-r--r-- | src/tools/qdoc/location.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/qdoc/location.h b/src/tools/qdoc/location.h index 71492e619f..0d22e94b46 100644 --- a/src/tools/qdoc/location.h +++ b/src/tools/qdoc/location.h @@ -97,6 +97,8 @@ public: static void information(const QString& message); static void internalError(const QString& hint); static void logToStdErr(const QString& message); + static void startLoggingProgress() { logProgress_ = true; } + static void stopLoggingProgress() { logProgress_ = false; } private: enum MessageType { Warning, Error }; @@ -124,6 +126,7 @@ private: static int tabSize; static QString programName; static QRegExp *spuriousRegExp; + static bool logProgress_; }; QT_END_NAMESPACE |