Insert items into VisualDataModel.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Thu, 22 Dec 2011 03:49:03 +0000 (13:49 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 23 Dec 2011 06:23:48 +0000 (07:23 +0100)
commitfb00bd445b1d77ffd7be8c60fce30f58e53eb6de
treee2000fd51e5c64a05fb45963e756aca29bca31d5
parent347f84e5aca9423536cb0cd7a2eafaf836a72212
Insert items into VisualDataModel.

Add API for inserting data directly into a VisualDataModel which
can be used among other things  to create temporary items that are
later resolved to an actual item in the source model.

Task-number: QTBUG-21516

Change-Id: I835f0e8d6c5edfb3a21029687de5b700f7400317
Reviewed-by: Martin Jones <martin.jones@nokia.com>
18 files changed:
src/quick/items/qquickvisualadaptormodel.cpp
src/quick/items/qquickvisualdatamodel.cpp
src/quick/items/qquickvisualdatamodel_p.h
src/quick/items/qquickvisualdatamodel_p_p.h
src/quick/util/qdeclarativelistcompositor.cpp
src/quick/util/qdeclarativelistcompositor_p.h
tests/auto/declarative/qdeclarativelistcompositor/tst_qdeclarativelistcompositor.cpp
tests/auto/qtquick2/qquickvisualdatamodel/data/listmodelproperties-package.qml [new file with mode: 0644]
tests/auto/qtquick2/qquickvisualdatamodel/data/listmodelproperties.qml [new file with mode: 0644]
tests/auto/qtquick2/qquickvisualdatamodel/data/multipleroleproperties-package.qml [new file with mode: 0644]
tests/auto/qtquick2/qquickvisualdatamodel/data/multipleroleproperties.qml [new file with mode: 0644]
tests/auto/qtquick2/qquickvisualdatamodel/data/objectlistproperties-package.qml [new file with mode: 0644]
tests/auto/qtquick2/qquickvisualdatamodel/data/objectlistproperties.qml [new file with mode: 0644]
tests/auto/qtquick2/qquickvisualdatamodel/data/singleroleproperties-package.qml [new file with mode: 0644]
tests/auto/qtquick2/qquickvisualdatamodel/data/singleroleproperties.qml [new file with mode: 0644]
tests/auto/qtquick2/qquickvisualdatamodel/data/stringlistproperties-package.qml [new file with mode: 0644]
tests/auto/qtquick2/qquickvisualdatamodel/data/stringlistproperties.qml [new file with mode: 0644]
tests/auto/qtquick2/qquickvisualdatamodel/tst_qquickvisualdatamodel.cpp