diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-03-29 13:39:26 +1000 |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-03-29 13:39:26 +1000 |
commit | 593f551d6718343f80b5497de58eb80566ea7908 (patch) | |
tree | 22e4211e379e9d559d14aa09b94d1910f4794ff3 /src/declarative/util/qdeclarativeopenmetaobject.cpp | |
parent | f183932778932a8c2fc5ac38c753893eaeb99575 (diff) | |
parent | 0f39158778ad3a7deb96303596f7b365802ffb5d (diff) | |
download | qt4-tools-593f551d6718343f80b5497de58eb80566ea7908.tar.gz |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'src/declarative/util/qdeclarativeopenmetaobject.cpp')
-rw-r--r-- | src/declarative/util/qdeclarativeopenmetaobject.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/declarative/util/qdeclarativeopenmetaobject.cpp b/src/declarative/util/qdeclarativeopenmetaobject.cpp index 8c2335401f..70ecf95920 100644 --- a/src/declarative/util/qdeclarativeopenmetaobject.cpp +++ b/src/declarative/util/qdeclarativeopenmetaobject.cpp @@ -225,6 +225,7 @@ int QDeclarativeOpenMetaObject::metaCall(QMetaObject::Call c, int id, void **a) if (d->data[propId].first != *reinterpret_cast<QVariant *>(a[0])) { propertyWrite(propId); d->writeData(propId, *reinterpret_cast<QVariant *>(a[0])); + propertyWritten(propId); activate(d->object, d->type->d->signalOffset + propId, 0); } } @@ -270,6 +271,11 @@ QVariant &QDeclarativeOpenMetaObject::operator[](const QByteArray &name) return d->getData(*iter); } +QVariant &QDeclarativeOpenMetaObject::operator[](int id) +{ + return d->getData(id); +} + void QDeclarativeOpenMetaObject::setValue(const QByteArray &name, const QVariant &val) { QHash<QByteArray, int>::ConstIterator iter = d->type->d->names.find(name); @@ -326,6 +332,10 @@ void QDeclarativeOpenMetaObject::propertyWrite(int) { } +void QDeclarativeOpenMetaObject::propertyWritten(int) +{ +} + void QDeclarativeOpenMetaObject::propertyCreated(int, QMetaPropertyBuilder &) { } |