projects
/
profile
/
ivi
/
qtbase.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e6e6dd
)
qdoc: Change to debug output
author
Martin Smith
<martin.smith@digia.com>
Wed, 3 Oct 2012 09:08:39 +0000
(11:08 +0200)
committer
The 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
patch
|
blob
|
history
diff --git
a/src/tools/qdoc/generator.cpp
b/src/tools/qdoc/generator.cpp
index
a349bf5
..
9cfdb22
100644
(file)
--- 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;
}
/*!