Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativevisualdatamodel / data / objectlist.qml
1 import QtQuick 1.0
2
3 ListView {
4     width: 100
5     height: 100
6     anchors.fill: parent
7     model: myModel
8     delegate: Component {
9         Rectangle {
10             height: 25
11             width: 100
12             color: model.modelData.color
13             Text { objectName: "name"; text: name }
14             Text { objectName: "section"; text: parent.ListView.section }
15         }
16     }
17     section.property: "name"
18     section.criteria: ViewSection.FullString
19 }