aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qsgpathview/data/treemodel.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qsgpathview/data/treemodel.qml')
-rw-r--r--tests/auto/declarative/qsgpathview/data/treemodel.qml19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/declarative/qsgpathview/data/treemodel.qml b/tests/auto/declarative/qsgpathview/data/treemodel.qml
new file mode 100644
index 0000000000..fcf6922d00
--- /dev/null
+++ b/tests/auto/declarative/qsgpathview/data/treemodel.qml
@@ -0,0 +1,19 @@
+import QtQuick 2.0
+
+PathView {
+ width: 320
+ height: 240
+ function setRoot(index) {
+ vdm.rootIndex = vdm.modelIndex(index);
+ }
+ model: VisualDataModel {
+ id: vdm
+ model: myModel
+ delegate: Text { objectName: "wrapper"; text: display }
+ }
+
+ path: Path {
+ startX: 0; startY: 120
+ PathLine { x: 320; y: 120 }
+ }
+}