Add dynamicRoles mode to ListModel for extra flexibility.
authorGlenn Watson <glenn.watson@nokia.com>
Thu, 1 Dec 2011 00:40:44 +0000 (10:40 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 2 Dec 2011 09:13:40 +0000 (10:13 +0100)
commit542a7d164ad81973f911a54bc53aa385d09b5c1f
treef0b46f04f2c026f493d093e3ab787ea3ed2a116b
parent63662f7f0e92c080cb45c99149b36f179f9b1360
Add dynamicRoles mode to ListModel for extra flexibility.

ListModel contains a new property called dynamicRoles.
By default this property is disabled, meaning that
the type of a given role cannot be changed dynamically.
However, when this property is set, the type of a
role can change between elements. This allows more
flexibility but comes at a significant performance
cost over the default static role mode.

Change-Id: I478d48c882f51ba2dde37f88e2aac744e919b68b
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/qml/qdeclarativelistmodel.cpp
src/declarative/qml/qdeclarativelistmodel_p.h
src/declarative/qml/qdeclarativelistmodel_p_p.h
src/declarative/qml/qdeclarativelistmodelworkeragent.cpp
src/declarative/qml/qdeclarativelistmodelworkeragent_p.h
src/declarative/qml/qdeclarativeopenmetaobject.cpp
src/declarative/qml/qdeclarativeopenmetaobject_p.h
tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp