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/qml/qmlcomponent.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/qml/qmlcomponent.cpp')
-rw-r--r-- | src/declarative/qml/qmlcomponent.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlcomponent.cpp b/src/declarative/qml/qmlcomponent.cpp index b257d5f..027c2a8 100644 --- a/src/declarative/qml/qmlcomponent.cpp +++ b/src/declarative/qml/qmlcomponent.cpp @@ -462,6 +462,11 @@ QObject *QmlComponent::beginCreate(QmlContext *context) QmlContext *ctxt = new QmlContext(context, 0); static_cast<QmlContextPrivate*>(ctxt->d_ptr)->url = d->cc->url; + if(d->start != -1) { + // ### FIXME + static_cast<QmlContextPrivate*>(ctxt->d_ptr)->startLine = d->cc->bytecode.at(d->start - 1).line; + static_cast<QmlContextPrivate*>(ctxt->d_ptr)->endLine = d->cc->bytecode.at(d->start - 1).createComponent.endLine; + } ctxt->activate(); QmlVME vme; |