summaryrefslogtreecommitdiffstats
path: root/src/declarative/debugger/qdeclarativedebughelper.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2010-09-22 07:16:42 (GMT)
committerKai Koehne <kai.koehne@nokia.com>2010-09-22 09:12:53 (GMT)
commit63c4c0449361ced03838e51d18e1113740f27fa9 (patch)
treebd86bbc06270ead4d3f1f86eb60c5df7a7bc07ec /src/declarative/debugger/qdeclarativedebughelper.cpp
parent38e11cfd56eba198e9d11b4084a02afa9a794da8 (diff)
downloadQt-63c4c0449361ced03838e51d18e1113740f27fa9.zip
Qt-63c4c0449361ced03838e51d18e1113740f27fa9.tar.gz
Qt-63c4c0449361ced03838e51d18e1113740f27fa9.tar.bz2
Mitigate private header problems in QtCreator by adding semi-private API
Add a semi-private API to get QScriptEngine for a QDeclarativeEngine. So far the qmljsdebugger lib in QtCreator accessed the script engine via QDeclarativeEnginePrivate. Replace this by a minimal API that is still in a private header, where we nevertheless can make some BC checks/guarantees. Aaron Kennedy agreed with the idea. Task-number: QTCREATORBUG-2179
Diffstat (limited to 'src/declarative/debugger/qdeclarativedebughelper.cpp')
-rw-r--r--src/declarative/debugger/qdeclarativedebughelper.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/declarative/debugger/qdeclarativedebughelper.cpp b/src/declarative/debugger/qdeclarativedebughelper.cpp
new file mode 100644
index 0000000..99feff4
--- /dev/null
+++ b/src/declarative/debugger/qdeclarativedebughelper.cpp
@@ -0,0 +1,13 @@
+#include "private/qdeclarativedebughelper_p.h"
+#include "private/qdeclarativeengine_p.h"
+
+#include <QtScript/QScriptEngine>
+
+QT_BEGIN_NAMESPACE
+
+QScriptEngine *QDeclarativeDebugHelper::getScriptEngine(QDeclarativeEngine *engine)
+{
+ return QDeclarativeEnginePrivate::getScriptEngine(engine);
+}
+
+QT_END_NAMESPACE