qdoc: Change to debug output
authorMartin Smith <martin.smith@digia.com>
Wed, 3 Oct 2012 09:08:39 +0000 (11:08 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 8 Oct 2012 07:12:11 +0000 (09:12 +0200)
Only print debug output if -debug is used
on the command line.

Change-Id: I2bdfca1a072f728427da61f05b34e6e07d933183
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
src/tools/qdoc/generator.cpp

index a349bf5..9cfdb22 100644 (file)
@@ -110,7 +110,8 @@ void Generator::setDebugSegfaultFlag(bool b)
  */
 void Generator::debugSegfault(const QString& message)
 {
-    qDebug() << "DEBUG:" << message;
+    if (debugging())
+        qDebug() << "DEBUG:" << message;
 }
 
 /*!