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