Fallback to QMetaObject for properties not in QQmlPropertyCache
authorAlberto Mardegan <alberto.mardegan@canonical.com>
Fri, 24 May 2013 07:46:39 +0000 (10:46 +0300)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 31 May 2013 13:09:46 +0000 (15:09 +0200)
commit84627464eb11ca1149d46946b12e3c82eb54a8bf
treed0148982345e8c05a5c08c42cc12f396bcba2b01
parentd818575966e2e2000fe2b7ee390c620f595d9825
Fallback to QMetaObject for properties not in QQmlPropertyCache

QQmlOpenMetaObject does not update the QQmlPropertyCache when new
properties are added, meaning that the QQmlPropertyCache might not
contain all of the dynamic properties of an object. Therefore, make
QQmlPropertyCache fallback to reading the QMetaObject when a property is
not found.

Task-number: QTBUG-31226
Change-Id: I760aaa155b1952f6f52ab9ce173fb9547f8e34a6
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
src/qml/qml/qqmlpropertycache.cpp
src/qml/qml/v8/qv8qobjectwrapper.cpp
tests/auto/qml/qqmlpropertymap/tst_qqmlpropertymap.cpp