aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/qml
diff options
context:
space:
mode:
authorLasse Holmstedt <[email protected]>2010-08-18 13:54:12 +0200
committerLasse Holmstedt <[email protected]>2010-08-24 17:46:22 +0200
commitb557c58eacfaf6634be6187ee58fd42f48c30d90 (patch)
treea5ebb0c4b8a64cbc1d9ac85296eddd1159b23eb2 /src/tools/qml
parentef11c4e7acdc735107ec0f6b2f142e7fe115332d (diff)
Qml Debugger: Enable debugging qml+cpp standalone applications
A new debugger engine, QmlCppEngine, is introduced, which wraps gdb and qml engines into one. Alternatively, if using Windows, Cdb is used instead of Gdb. Most of the debugger ui switcher is now rewritten, and it is tailored for the QML and CPP layout case, the only one supported anyway. Reviewed-by: hjk
Diffstat (limited to 'src/tools/qml')
-rw-r--r--src/tools/qml/qmlobserver/main.cpp3
-rw-r--r--src/tools/qml/qmlobserver/qmlruntime.cpp8
2 files changed, 4 insertions, 7 deletions
diff --git a/src/tools/qml/qmlobserver/main.cpp b/src/tools/qml/qmlobserver/main.cpp
index b57e6093f7d..786c494d5c9 100644
--- a/src/tools/qml/qmlobserver/main.cpp
+++ b/src/tools/qml/qmlobserver/main.cpp
@@ -409,6 +409,9 @@ int main(int argc, char ** argv)
viewer->enableExperimentalGestures();
viewer->setDesignModeBehavior(designModeBehavior);
+
+ // FIXME debug mode is always on for qml observer
+ debuggerModeBehavior = true;
viewer->setDebugMode(debuggerModeBehavior);
foreach (QString lib, imports)
diff --git a/src/tools/qml/qmlobserver/qmlruntime.cpp b/src/tools/qml/qmlobserver/qmlruntime.cpp
index 6fef7bfd801..6e53705f9d4 100644
--- a/src/tools/qml/qmlobserver/qmlruntime.cpp
+++ b/src/tools/qml/qmlobserver/qmlruntime.cpp
@@ -64,7 +64,6 @@
#include "qdeclarative.h"
#include <QAbstractAnimation>
#include <private/qabstractanimation_p.h>
-#include <private/qdeclarativeengine_p.h>
#include <QSettings>
#include <QXmlStreamReader>
@@ -672,14 +671,9 @@ void QDeclarativeViewer::setDesignModeBehavior(bool value)
void QDeclarativeViewer::setDebugMode(bool on)
{
- Q_UNUSED(on);
- //if (on)
- {
- new JSDebuggerAgent(QDeclarativeEnginePrivate::getScriptEngine(canvas->engine()));
- }
+ canvas->setDebugMode(on);
}
-
void QDeclarativeViewer::enableExperimentalGestures()
{
canvas->viewport()->grabGesture(Qt::TapGesture,Qt::DontStartGestureOnChildren|Qt::ReceivePartialGestures|Qt::IgnoredGesturesPropagateToParent);