diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-02-09 05:09:42 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-02-09 05:42:41 (GMT) |
commit | d914555badcd4761864657e1e335e657b791453f (patch) | |
tree | e2038d1adea4efada31c4732cd36a71fbec2fbb7 /src/declarative/qml/qmlmetaproperty.cpp | |
parent | 2f653cc06b97b443b9832d0121dbf92b35dd32c2 (diff) | |
download | Qt-d914555badcd4761864657e1e335e657b791453f.zip Qt-d914555badcd4761864657e1e335e657b791453f.tar.gz Qt-d914555badcd4761864657e1e335e657b791453f.tar.bz2 |
Replace QList<>* support with QmlListProperty
Diffstat (limited to 'src/declarative/qml/qmlmetaproperty.cpp')
-rw-r--r-- | src/declarative/qml/qmlmetaproperty.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlmetaproperty.cpp b/src/declarative/qml/qmlmetaproperty.cpp index 09c936e..a0857df 100644 --- a/src/declarative/qml/qmlmetaproperty.cpp +++ b/src/declarative/qml/qmlmetaproperty.cpp @@ -892,7 +892,8 @@ bool QmlMetaPropertyPrivate::write(QObject *object, const QmlPropertyCache::Data QVariant listVar = prop.read(object); QmlMetaType::clear(listVar); for (int ii = 0; ii < list.count(); ++ii) { - QVariant v = QmlMetaType::fromObject(list.at(ii), listType); + QObject *o = list.at(ii); + QVariant v = QVariant(listType, &o); QmlMetaType::append(listVar, v); } |