diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-11-29 10:46:00 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-11-29 10:46:00 (GMT) |
commit | d406a899943c6d56d921bc290a009415a3c4eba5 (patch) | |
tree | c48f12180910251b4572cb3600a72332ff5f34f5 /src/declarative/qml/qmlvme.cpp | |
parent | 696b55195f1ad40a077683dbc533c73baf1536ee (diff) | |
download | Qt-d406a899943c6d56d921bc290a009415a3c4eba5.zip Qt-d406a899943c6d56d921bc290a009415a3c4eba5.tar.gz Qt-d406a899943c6d56d921bc290a009415a3c4eba5.tar.bz2 |
Support array-literal Script::source values
Diffstat (limited to 'src/declarative/qml/qmlvme.cpp')
-rw-r--r-- | src/declarative/qml/qmlvme.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/declarative/qml/qmlvme.cpp b/src/declarative/qml/qmlvme.cpp index da09288..f2fb217 100644 --- a/src/declarative/qml/qmlvme.cpp +++ b/src/declarative/qml/qmlvme.cpp @@ -142,7 +142,7 @@ QObject *QmlVME::run(QStack<QObject *> &stack, QmlContext *ctxt, const QList<int> &intData = comp->intData; const QList<float> &floatData = comp->floatData; const QList<QmlPropertyCache *> &propertyCaches = comp->propertyCaches; - + const QList<QmlParser::Object::ScriptBlock> &scripts = comp->scripts; QmlEnginePrivate::SimpleList<QmlAbstractBinding> bindValues; QmlEnginePrivate::SimpleList<QmlParserStatus> parserStatus; @@ -224,7 +224,6 @@ QObject *QmlVME::run(QStack<QObject *> &stack, QmlContext *ctxt, case QmlInstruction::SetId: { QObject *target = stack.top(); -// ctxt->setContextProperty(primitives.at(instr.setId.value), target); cp->setIdProperty(instr.setId.index, target); } break; @@ -551,9 +550,7 @@ QObject *QmlVME::run(QStack<QObject *> &stack, QmlContext *ctxt, case QmlInstruction::StoreScript: { QObject *target = stack.top(); - cp->addScript(primitives.at(instr.storeScript.value), target, - primitives.at(instr.storeScript.fileName), - instr.storeScript.lineNumber); + cp->addScript(scripts.at(instr.storeScript.value), target); } break; |