forked from qt-creator/qt-creator
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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user