diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-07-25 13:06:28 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-07-25 06:08:56 +0200 |
commit | 9cb3889b33a4a92db40a3a72c3ee4fa25770d539 (patch) | |
tree | 01b25e5a091a4a7874e6e300a42fd3cd40ee9f8f /src/declarative/qml/qdeclarativeproperty.cpp | |
parent | e826e578eaef3f05498124eb2057f41410696480 (diff) |
Correctly load flags for binding properties
Change-Id: I80e79ff7de8d879f700f9f4fe96d796de0f17aff
Reviewed-on: http://codereview.qt.nokia.com/2055
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'src/declarative/qml/qdeclarativeproperty.cpp')
-rw-r--r-- | src/declarative/qml/qdeclarativeproperty.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/declarative/qml/qdeclarativeproperty.cpp b/src/declarative/qml/qdeclarativeproperty.cpp index 088379e8d2..9b7431a58c 100644 --- a/src/declarative/qml/qdeclarativeproperty.cpp +++ b/src/declarative/qml/qdeclarativeproperty.cpp @@ -1095,8 +1095,8 @@ bool QDeclarativePropertyPrivate::writeValueProperty(const QVariant &value, Writ } bool QDeclarativePropertyPrivate::write(QObject *object, const QDeclarativePropertyCache::Data &property, - const QVariant &value, QDeclarativeContextData *context, - WriteFlags flags) + const QVariant &value, QDeclarativeContextData *context, + WriteFlags flags) { int coreIdx = property.coreIndex; int status = -1; //for dbus @@ -1549,7 +1549,8 @@ struct ValueTypeSerializedData : public SerializedData { }; QByteArray QDeclarativePropertyPrivate::saveValueType(const QMetaObject *metaObject, int index, - const QMetaObject *subObject, int subIndex) + const QMetaObject *subObject, int subIndex, + QDeclarativeEngine *) { QMetaProperty prop = metaObject->property(index); QMetaProperty subProp = subObject->property(subIndex); @@ -1567,12 +1568,13 @@ QByteArray QDeclarativePropertyPrivate::saveValueType(const QMetaObject *metaObj return rv; } -QByteArray QDeclarativePropertyPrivate::saveProperty(const QMetaObject *metaObject, int index) +QByteArray QDeclarativePropertyPrivate::saveProperty(const QMetaObject *metaObject, int index, + QDeclarativeEngine *engine) { SerializedData sd; memset(&sd, 0, sizeof(sd)); sd.isValueType = false; - sd.core.load(metaObject->property(index)); + sd.core.load(metaObject->property(index), engine); QByteArray rv((const char *)&sd, sizeof(sd)); return rv; |