diff options
author | Martin Smith <martin.smith@digia.com> | 2012-10-03 11:08:39 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-08 09:12:11 +0200 |
commit | 50eab48fce0f5957ca09343448e018fb2f0cbfd9 (patch) | |
tree | 89427db6b430473873aa1e442975d95def2ae6c2 /src | |
parent | 5e6e6dd1160c35259ae0ac22b3f5616f5359e014 (diff) |
qdoc: Change to debug output
Only print debug output if -debug is used
on the command line.
Change-Id: I2bdfca1a072f728427da61f05b34e6e07d933183
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/qdoc/generator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/qdoc/generator.cpp b/src/tools/qdoc/generator.cpp index a349bf5405..9cfdb2246b 100644 --- a/src/tools/qdoc/generator.cpp +++ b/src/tools/qdoc/generator.cpp @@ -110,7 +110,8 @@ void Generator::setDebugSegfaultFlag(bool b) */ void Generator::debugSegfault(const QString& message) { - qDebug() << "DEBUG:" << message; + if (debugging()) + qDebug() << "DEBUG:" << message; } /*! |