Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativepathview / data / treemodel.qml
1 import QtQuick 1.0
2
3 PathView {
4     width: 320
5     height: 240
6     function setRoot(index) {
7         vdm.rootIndex = vdm.modelIndex(index);
8     }
9     model: VisualDataModel {
10         id: vdm
11         model: myModel
12         delegate: Text { objectName: "wrapper"; text: display }
13     }
14
15     path: Path {
16         startX: 0; startY: 120
17         PathLine { x: 320; y: 120 }
18     }
19 }