summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2010-11-03 01:24:52 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2010-11-03 01:24:52 (GMT)
commit1b3f43c997b00d6b0d435ed8be08596c913a0189 (patch)
tree26b8c4adaf5f07d1a67f838f4053fb2b0ba466bc /src/declarative/qml
parent8250d455d8d85c5fe0c819f997ba0902315bfce4 (diff)
downloadQt-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/qml')
-rw-r--r--src/declarative/qml/qdeclarativeengine.cpp1
-rw-r--r--src/declarative/qml/qdeclarativeengine_p.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativeengine.cpp b/src/declarative/qml/qdeclarativeengine.cpp
index b87ba52..754e035 100644
--- a/src/declarative/qml/qdeclarativeengine.cpp
+++ b/src/declarative/qml/qdeclarativeengine.cpp
@@ -174,6 +174,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 cac8f20..6d0c2b8 100644
--- a/src/declarative/qml/qdeclarativeengine_p.h
+++ b/src/declarative/qml/qdeclarativeengine_p.h
@@ -322,6 +322,8 @@ public:
static QString urlToLocalFileOrQrc(const QUrl& url);
static void defineModule();
+
+ static bool qml_debugging_enabled;
};
/*!