diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2010-11-02 12:07:01 (GMT) |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2010-11-02 16:39:49 (GMT) |
commit | b2016bbfc9c7389e7b64451417395ceba96af21f (patch) | |
tree | f9f87c588d53925d8f418f582229c5448ebb0610 /tests/auto/declarative/qdeclarativedebugservice | |
parent | 11bb4f85ef38270758ec0930709c23c7fcb5840c (diff) | |
download | Qt-b2016bbfc9c7389e7b64451417395ceba96af21f.zip Qt-b2016bbfc9c7389e7b64451417395ceba96af21f.tar.gz Qt-b2016bbfc9c7389e7b64451417395ceba96af21f.tar.bz2 |
Qml Debugging: Only enable if explicitly requested
Enable the remote debugging of QDeclarativeEngines only after
QDeclarativeDebugHelper::enableDebugging()
has been called.
Approved by 4.7 Program Team.
Reviewed-by: Alessandro Portale
Task-number: QTBUG-13762
Diffstat (limited to 'tests/auto/declarative/qdeclarativedebugservice')
-rw-r--r-- | tests/auto/declarative/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp b/tests/auto/declarative/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp index 538129c..30629f9 100644 --- a/tests/auto/declarative/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp +++ b/tests/auto/declarative/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp @@ -46,6 +46,7 @@ #include <QThread> #include <QtDeclarative/qdeclarativeengine.h> +#include <private/qdeclarativedebughelper_p.h> #include <private/qdeclarativedebug_p.h> #include <private/qdeclarativeenginedebug_p.h> @@ -75,6 +76,9 @@ private slots: void tst_QDeclarativeDebugService::initTestCase() { + QTest::ignoreMessage(QtWarningMsg, "Qml debugging is enabled. Only use this in a safe environment!"); + QDeclarativeDebugHelper::enableDebugging(); + QTest::ignoreMessage(QtWarningMsg, "QDeclarativeDebugServer: Waiting for connection on port 3769..."); new QDeclarativeEngine(this); |