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/qdeclarativedebugclient | |
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/qdeclarativedebugclient')
-rw-r--r-- | tests/auto/declarative/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp b/tests/auto/declarative/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp index 80241ba..64afd4e 100644 --- a/tests/auto/declarative/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp +++ b/tests/auto/declarative/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp @@ -51,6 +51,7 @@ #include <private/qdeclarativeenginedebug_p.h> #include <private/qdeclarativedebugclient_p.h> #include <private/qdeclarativedebugservice_p.h> +#include <private/qdeclarativedebughelper_p.h> #include "../../../shared/util.h" #include "../shared/debugutil_p.h" @@ -72,8 +73,10 @@ private slots: void tst_QDeclarativeDebugClient::initTestCase() { - QTest::ignoreMessage(QtWarningMsg, "QDeclarativeDebugServer: Waiting for connection on port 3770..."); + 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 3770..."); new QDeclarativeEngine(this); m_conn = new QDeclarativeDebugConnection(this); |