diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-04-08 07:37:06 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-04-08 07:37:06 (GMT) |
commit | 28605b56271cd3efb78c5f2f51855d2bca56ee6f (patch) | |
tree | 3bc0988400d8d8f4dd251c94d20443ecd3f6b150 /src/declarative/qml/qdeclarativevme.cpp | |
parent | 3ceffd7287a269ec5ea9dab712ee9120a539e0e1 (diff) | |
parent | be8a7153d613586d69ac528153a6b8ccbe931aa6 (diff) | |
download | Qt-28605b56271cd3efb78c5f2f51855d2bca56ee6f.zip Qt-28605b56271cd3efb78c5f2f51855d2bca56ee6f.tar.gz Qt-28605b56271cd3efb78c5f2f51855d2bca56ee6f.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Conflicts:
examples/declarative/tutorials/samegame/samegame4/content/samegame.js
Diffstat (limited to 'src/declarative/qml/qdeclarativevme.cpp')
-rw-r--r-- | src/declarative/qml/qdeclarativevme.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativevme.cpp b/src/declarative/qml/qdeclarativevme.cpp index 2d1a549..0addfabd 100644 --- a/src/declarative/qml/qdeclarativevme.cpp +++ b/src/declarative/qml/qdeclarativevme.cpp @@ -345,6 +345,26 @@ QObject *QDeclarativeVME::run(QDeclarativeVMEStack<QObject *> &stack, } break; + case QDeclarativeInstruction::StoreVariantInteger: + { + QObject *target = stack.top(); + QVariant v(instr.storeInteger.value); + void *a[] = { &v, 0, &status, &flags }; + QMetaObject::metacall(target, QMetaObject::WriteProperty, + instr.storeString.propertyIndex, a); + } + break; + + case QDeclarativeInstruction::StoreVariantDouble: + { + QObject *target = stack.top(); + QVariant v(instr.storeDouble.value); + void *a[] = { &v, 0, &status, &flags }; + QMetaObject::metacall(target, QMetaObject::WriteProperty, + instr.storeString.propertyIndex, a); + } + break; + case QDeclarativeInstruction::StoreString: { QObject *target = stack.top(); |