summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativevisualdatamodel/data
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-08-27 04:57:02 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-08-27 04:57:02 (GMT)
commitc43cf8ad4f1ba7d6d9e2403520a7e54ceadee60c (patch)
treeca764dc2ccab18073debb909acd6f094a6f8b881 /tests/auto/declarative/qdeclarativevisualdatamodel/data
parent94d7ec29f177665e8e2a218a161df517f3ae51d5 (diff)
downloadQt-c43cf8ad4f1ba7d6d9e2403520a7e54ceadee60c.zip
Qt-c43cf8ad4f1ba7d6d9e2403520a7e54ceadee60c.tar.gz
Qt-c43cf8ad4f1ba7d6d9e2403520a7e54ceadee60c.tar.bz2
Fix VisualDataModel model update handling when rootIndex is specified.
Task-number: QTBUG-13038
Diffstat (limited to 'tests/auto/declarative/qdeclarativevisualdatamodel/data')
-rw-r--r--tests/auto/declarative/qdeclarativevisualdatamodel/data/datalist.qml16
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/auto/declarative/qdeclarativevisualdatamodel/data/datalist.qml b/tests/auto/declarative/qdeclarativevisualdatamodel/data/datalist.qml
index a798f77..c5e945a 100644
--- a/tests/auto/declarative/qdeclarativevisualdatamodel/data/datalist.qml
+++ b/tests/auto/declarative/qdeclarativevisualdatamodel/data/datalist.qml
@@ -4,12 +4,16 @@ ListView {
width: 100
height: 100
anchors.fill: parent
- model: myModel
- delegate: Component {
- Rectangle {
- height: 25
- width: 100
- Text { objectName: "display"; text: display }
+ model: VisualDataModel {
+ id: visualModel
+ objectName: "visualModel"
+ model: myModel
+ delegate: Component {
+ Rectangle {
+ height: 25
+ width: 100
+ Text { objectName: "display"; text: display }
+ }
}
}
}