Add a get function to VisualDataGroup.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Fri, 23 Sep 2011 03:43:24 +0000 (13:43 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 6 Oct 2011 08:44:27 +0000 (10:44 +0200)
commit6e7ea2fc3823cb13a366845efe32050b9adefffb
treea1669cd7590840a51aa5ae5a9f6d80b7771c1fcc
parent00ee5a5d34f105701f5caf75368326c8009fc020
Add a get function to VisualDataGroup.

This returns an object with properties for accessing the model data of
an item, membership in the visual data model's groups and the index
of the item in each group.

Task-number: QTBUG-21512

Change-Id: I878442c8a2e30cc6f9941f7412303581613a6142
Reviewed-on: http://codereview.qt-project.org/5515
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
examples/declarative/modelviews/visualdatamodel/sortedmodel.qml [new file with mode: 0644]
examples/declarative/modelviews/visualdatamodel/visualdatamodel.qmlproject [new file with mode: 0644]
src/declarative/items/qsgvisualdatamodel.cpp
src/declarative/items/qsgvisualdatamodel_p.h
src/declarative/qml/v8/qv8engine_p.h
tests/auto/declarative/qsgvisualdatamodel/data/groups.qml
tests/auto/declarative/qsgvisualdatamodel/tst_qsgvisualdatamodel.cpp