summaryrefslogtreecommitdiffstats
path: root/tests/QtDeclarative/viewmodel.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtDeclarative/viewmodel.qml')
-rw-r--r--tests/QtDeclarative/viewmodel.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/QtDeclarative/viewmodel.qml b/tests/QtDeclarative/viewmodel.qml
new file mode 100644
index 0000000..badce7d
--- /dev/null
+++ b/tests/QtDeclarative/viewmodel.qml
@@ -0,0 +1,14 @@
+import Qt 4.7
+
+ListView {
+ width: 100; height: 100
+ anchors.fill: parent
+
+ model: myModel
+ delegate: Rectangle {
+ height: 25
+ width: 100
+ Text { text: title }
+ }
+}
+