diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-08-27 04:57:02 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-08-27 04:57:02 (GMT) |
commit | c43cf8ad4f1ba7d6d9e2403520a7e54ceadee60c (patch) | |
tree | ca764dc2ccab18073debb909acd6f094a6f8b881 /tests/auto/declarative/qdeclarativevisualdatamodel/data | |
parent | 94d7ec29f177665e8e2a218a161df517f3ae51d5 (diff) | |
download | Qt-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.qml | 16 |
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 } + } } } } |