diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2010-11-03 01:24:52 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2010-11-03 01:24:52 (GMT) |
commit | 1b3f43c997b00d6b0d435ed8be08596c913a0189 (patch) | |
tree | 26b8c4adaf5f07d1a67f838f4053fb2b0ba466bc /src/declarative/debugger/qdeclarativedebughelper.cpp | |
parent | 8250d455d8d85c5fe0c819f997ba0902315bfce4 (diff) | |
download | Qt-1b3f43c997b00d6b0d435ed8be08596c913a0189.zip Qt-1b3f43c997b00d6b0d435ed8be08596c913a0189.tar.gz Qt-1b3f43c997b00d6b0d435ed8be08596c913a0189.tar.bz2 |
Qml Debugging: Only enable if explicitly requestedv4.7.1
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
(cherry picked from commit b2016bbfc9c7389e7b64451417395ceba96af21f)
Conflicts:
src/s60installs/bwins/QtDeclarativeu.def
src/s60installs/eabi/QtDeclarativeu.def
Diffstat (limited to 'src/declarative/debugger/qdeclarativedebughelper.cpp')
-rw-r--r-- | src/declarative/debugger/qdeclarativedebughelper.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/declarative/debugger/qdeclarativedebughelper.cpp b/src/declarative/debugger/qdeclarativedebughelper.cpp index 24cad35..d6d6e59 100644 --- a/src/declarative/debugger/qdeclarativedebughelper.cpp +++ b/src/declarative/debugger/qdeclarativedebughelper.cpp @@ -48,6 +48,7 @@ #include <private/qdeclarativeengine_p.h> #include <private/qabstractanimation_p.h> +#include <private/qdeclarativeengine_p.h> QT_BEGIN_NAMESPACE @@ -63,4 +64,11 @@ void QDeclarativeDebugHelper::setAnimationSlowDownFactor(qreal factor) timer->setSlowdownFactor(factor); } +void QDeclarativeDebugHelper::enableDebugging() { + if (!QDeclarativeEnginePrivate::qml_debugging_enabled) { + qWarning("Qml debugging is enabled. Only use this in a safe environment!"); + } + QDeclarativeEnginePrivate::qml_debugging_enabled = true; +} + QT_END_NAMESPACE |