diff options
Diffstat (limited to 'tests/auto/declarative/visual/repeater/basic1.qml')
-rw-r--r-- | tests/auto/declarative/visual/repeater/basic1.qml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/auto/declarative/visual/repeater/basic1.qml b/tests/auto/declarative/visual/repeater/basic1.qml new file mode 100644 index 0000000..f6899e8 --- /dev/null +++ b/tests/auto/declarative/visual/repeater/basic1.qml @@ -0,0 +1,28 @@ +import Qt 4.6 + +Rectangle { + color: "blue" + width: 300 + height: 200 + id: Page + Row { + Repeater { + delegate: Rectangle { + color: "red" + width: 100 + height: 100 + Text { + text: name + } + } + model: ListModel { + ListElement { + name: "January" + } + ListElement { + name: "February" + } + } + } + } +} |