diff options
Diffstat (limited to 'tests/auto/declarative/visual/ListView/basic1')
-rw-r--r-- | tests/auto/declarative/visual/ListView/basic1/basic1.qml | 25 | ||||
-rw-r--r-- | tests/auto/declarative/visual/ListView/basic1/basic1.xml | 19 |
2 files changed, 25 insertions, 19 deletions
diff --git a/tests/auto/declarative/visual/ListView/basic1/basic1.qml b/tests/auto/declarative/visual/ListView/basic1/basic1.qml new file mode 100644 index 0000000..605457b --- /dev/null +++ b/tests/auto/declarative/visual/ListView/basic1/basic1.qml @@ -0,0 +1,25 @@ +Rect { + color: "blue" + width: 300 + height: 200 + id: Page + ListView { + anchors.fill: parent + delegate: Rect { + color: "red" + width: 100 + height: 100 + Text { + text: name + } + } + model: ListModel { + ListElement { + name: "January" + } + ListElement { + name: "February" + } + } + } +} diff --git a/tests/auto/declarative/visual/ListView/basic1/basic1.xml b/tests/auto/declarative/visual/ListView/basic1/basic1.xml deleted file mode 100644 index 5038c0a..0000000 --- a/tests/auto/declarative/visual/ListView/basic1/basic1.xml +++ /dev/null @@ -1,19 +0,0 @@ -<Rect color="blue" width="800" height="600" id="Page"> - <ListView anchors.fill="{parent}"> - <delegate> - <Rect color="red" width="100" height="100"> - <Text text="{name}" /> - </Rect> - </delegate> - <model> - <ListModel> - <Month> - <name>January</name> - </Month> - <Month> - <name>February</name> - </Month> - </ListModel> - </model> - </ListView> -</Rect> |