diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-07 05:37:44 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-07 05:37:44 (GMT) |
commit | 99573a8e81fcea38c5f68b340068fff266315c03 (patch) | |
tree | 42f71fa7727fa4036096b07f15d2e9ba27ec8ef9 /src/declarative/qml/qmlvme.cpp | |
parent | 50a4a8ec76b98cc860de9b6e6aaf25c87e690eed (diff) | |
download | Qt-99573a8e81fcea38c5f68b340068fff266315c03.zip Qt-99573a8e81fcea38c5f68b340068fff266315c03.tar.gz Qt-99573a8e81fcea38c5f68b340068fff266315c03.tar.bz2 |
Make Script an instrinsic type
This allows us to delay the QML load until external script files have
been loaded from the network, and to correctly scope these scripts.
Diffstat (limited to 'src/declarative/qml/qmlvme.cpp')
-rw-r--r-- | src/declarative/qml/qmlvme.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlvme.cpp b/src/declarative/qml/qmlvme.cpp index 4ba412b..e4eef64 100644 --- a/src/declarative/qml/qmlvme.cpp +++ b/src/declarative/qml/qmlvme.cpp @@ -564,6 +564,13 @@ QObject *QmlVME::run(QStack<QObject *> &stack, QmlContext *ctxt, } break; + case QmlInstruction::StoreScript: + { + QObject *target = stack.top(); + cp->addScript(primitives.at(instr.storeScript.value), target); + } + break; + case QmlInstruction::BeginObject: { QObject *target = stack.top(); |