diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-05-06 05:15:27 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-05-06 05:15:27 (GMT) |
commit | f0a172d19821e37604004cd6b8fa17b998b39857 (patch) | |
tree | 28049b952cfe7da29e59d77fde0c27081e8c59d7 /src/declarative/util/qfxview.cpp | |
parent | 5edf4ed878bbe933e6ff0023cce8808b1dcff6c0 (diff) | |
download | Qt-f0a172d19821e37604004cd6b8fa17b998b39857.zip Qt-f0a172d19821e37604004cd6b8fa17b998b39857.tar.gz Qt-f0a172d19821e37604004cd6b8fa17b998b39857.tar.bz2 |
Beginings of an experimental QML debugger view
Diffstat (limited to 'src/declarative/util/qfxview.cpp')
-rw-r--r-- | src/declarative/util/qfxview.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/declarative/util/qfxview.cpp b/src/declarative/util/qfxview.cpp index 1315f19..ea2719d 100644 --- a/src/declarative/util/qfxview.cpp +++ b/src/declarative/util/qfxview.cpp @@ -60,10 +60,12 @@ #include "qfxview.h" #include <QtDeclarative/qmlengine.h> #include <QtDeclarative/qmlcontext.h> +#include <QtDeclarative/qmldebugger.h> QT_BEGIN_NAMESPACE DEFINE_BOOL_CONFIG_OPTION(itemTreeDump, ITEMTREE_DUMP); +DEFINE_BOOL_CONFIG_OPTION(qmlDebugger, QML_DEBUGGER); static QVariant stringToPixmap(const QString &str) { @@ -324,6 +326,14 @@ void QFxView::continueExecute() if (itemTreeDump()) item->dump(); + if(qmlDebugger()) { + QmlDebugger *debugger = new QmlDebugger; + debugger->setDebugObject(item); + debugger->show(); + raise(); + debugger->raise(); + } + QPerformanceLog::displayData(); QPerformanceLog::clear(); d->root = item; |