summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/visual/ListView/basic2.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/visual/ListView/basic2.qml')
-rw-r--r--tests/auto/declarative/visual/ListView/basic2.qml31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/auto/declarative/visual/ListView/basic2.qml b/tests/auto/declarative/visual/ListView/basic2.qml
new file mode 100644
index 0000000..4fe63ac
--- /dev/null
+++ b/tests/auto/declarative/visual/ListView/basic2.qml
@@ -0,0 +1,31 @@
+import Qt 4.6
+
+Rectangle {
+ color: "blue"
+ width: 200
+ height: 300
+ id: Page
+ Component {
+ id: Delegate
+ Rectangle {
+ color: "red"
+ width: 100
+ height: 100
+ Text {
+ text: name
+ }
+ }
+ }
+ ListView {
+ anchors.fill: parent
+ delegate: Delegate
+ model: ListModel {
+ ListElement {
+ name: "January"
+ }
+ ListElement {
+ name: "February"
+ }
+ }
+ }
+}