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 /src/declarative/qml | |
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 'src/declarative/qml')
-rw-r--r-- | src/declarative/qml/qdeclarativeengine.cpp | 1 | ||||
-rw-r--r-- | src/declarative/qml/qdeclarativeengine_p.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativeengine.cpp b/src/declarative/qml/qdeclarativeengine.cpp index 6906f21..808ba68 100644 --- a/src/declarative/qml/qdeclarativeengine.cpp +++ b/src/declarative/qml/qdeclarativeengine.cpp @@ -176,6 +176,7 @@ struct StaticQtMetaObject : public QObject }; static bool qt_QmlQtModule_registered = false; +bool QDeclarativeEnginePrivate::qml_debugging_enabled = false; void QDeclarativeEnginePrivate::defineModule() { diff --git a/src/declarative/qml/qdeclarativeengine_p.h b/src/declarative/qml/qdeclarativeengine_p.h index 8539fbf..deb4a77 100644 --- a/src/declarative/qml/qdeclarativeengine_p.h +++ b/src/declarative/qml/qdeclarativeengine_p.h @@ -321,6 +321,8 @@ public: static QString urlToLocalFileOrQrc(const QUrl& url); static void defineModule(); + + static bool qml_debugging_enabled; }; /*! |