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/qdeclarativedebughelper/tst_qdeclarativedebughelper.cpp | |
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/qdeclarativedebughelper/tst_qdeclarativedebughelper.cpp')
-rw-r--r-- | tests/auto/declarative/qdeclarativedebughelper/tst_qdeclarativedebughelper.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativedebughelper/tst_qdeclarativedebughelper.cpp b/tests/auto/declarative/qdeclarativedebughelper/tst_qdeclarativedebughelper.cpp index 36f2222..60aec9d 100644 --- a/tests/auto/declarative/qdeclarativedebughelper/tst_qdeclarativedebughelper.cpp +++ b/tests/auto/declarative/qdeclarativedebughelper/tst_qdeclarativedebughelper.cpp @@ -54,6 +54,7 @@ class tst_qdeclarativedebughelper : public QObject { private slots: void getScriptEngine(); void setAnimationSlowDownFactor(); + void enableDebugging(); }; class TestAnimation : public QAbstractAnimation { @@ -109,6 +110,12 @@ void tst_qdeclarativedebughelper::setAnimationSlowDownFactor() QVERIFY(animation.updateCalled > 1); } +void tst_qdeclarativedebughelper::enableDebugging() +{ + QTest::ignoreMessage(QtWarningMsg, "Qml debugging is enabled. Only use this in a safe environment!"); + QDeclarativeDebugHelper::enableDebugging(); +} + QTEST_MAIN(tst_qdeclarativedebughelper) #include "tst_qdeclarativedebughelper.moc" |