diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2011-11-28 11:43:00 (GMT) |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2011-11-28 13:05:42 (GMT) |
commit | e2773a9fc4450dbc8cb1e0736252e7520b5e6bd1 (patch) | |
tree | d2b6c190222c978e0658ff6a58f5a41a8182ca87 /src/declarative | |
parent | c26418bb8d0889beb6d4ec36a40fbf0c7ca69c97 (diff) | |
download | Qt-e2773a9fc4450dbc8cb1e0736252e7520b5e6bd1.zip Qt-e2773a9fc4450dbc8cb1e0736252e7520b5e6bd1.tar.gz Qt-e2773a9fc4450dbc8cb1e0736252e7520b5e6bd1.tar.bz2 |
Declarative: Use qDebug() for debugger status updates
Although "Qml debugging is enabled. Only use this in a safe environment!"
is a warning, using qWarning() for it let every app crash that is run with
QT_FATAL_WARNINGS. Fix that by using qDebug() for the updates that
happen during 'normal' operation.
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Change-Id: Ie37a35ca27ec6e507f7de140484ca8cf96410be2
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/debugger/qdeclarativedebugserver.cpp | 2 | ||||
-rw-r--r-- | src/declarative/qml/qdeclarativeengine.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/debugger/qdeclarativedebugserver.cpp b/src/declarative/debugger/qdeclarativedebugserver.cpp index 6cb5b9f..f8e3f00 100644 --- a/src/declarative/debugger/qdeclarativedebugserver.cpp +++ b/src/declarative/debugger/qdeclarativedebugserver.cpp @@ -281,7 +281,7 @@ void QDeclarativeDebugServer::receiveMessage(const QByteArray &message) iter.value()->statusChanged(newStatus); } - qWarning("QDeclarativeDebugServer: Connection established"); + qDebug("QDeclarativeDebugServer: Connection established"); } else { QString debugServer(QLatin1String("QDeclarativeDebugServer")); diff --git a/src/declarative/qml/qdeclarativeengine.cpp b/src/declarative/qml/qdeclarativeengine.cpp index 89a9809..63a676e 100644 --- a/src/declarative/qml/qdeclarativeengine.cpp +++ b/src/declarative/qml/qdeclarativeengine.cpp @@ -1089,7 +1089,7 @@ QDeclarativeDebuggingEnabler::QDeclarativeDebuggingEnabler() { #ifndef QDECLARATIVE_NO_DEBUG_PROTOCOL if (!QDeclarativeEnginePrivate::qml_debugging_enabled) { - qWarning("Qml debugging is enabled. Only use this in a safe environment!"); + qDebug("Qml debugging is enabled. Only use this in a safe environment!"); } QDeclarativeEnginePrivate::qml_debugging_enabled = true; #endif |