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>
bb10
Martin Smith 2012-10-03 11:08:39 +02:00 committed by The Qt Project
parent 5e6e6dd116
commit 50eab48fce
1 changed files with 2 additions and 1 deletions

View File

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