aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick1/qdeclarativevisualdatamodel/data/objectlist.qml
blob: 413425971425a7f97d11511c54ea99dadeea8bff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import QtQuick 1.0

ListView {
    width: 100
    height: 100
    anchors.fill: parent
    model: myModel
    delegate: Component {
        Rectangle {
            height: 25
            width: 100
            color: model.modelData.color
            Text { objectName: "name"; text: name }
            Text { objectName: "section"; text: parent.ListView.section }
        }
    }
    section.property: "name"
    section.criteria: ViewSection.FullString
}