summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/visual/flickable/flickable.xml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/visual/flickable/flickable.xml')
-rw-r--r--tests/auto/declarative/visual/flickable/flickable.xml43
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/auto/declarative/visual/flickable/flickable.xml b/tests/auto/declarative/visual/flickable/flickable.xml
new file mode 100644
index 0000000..78bf42f
--- /dev/null
+++ b/tests/auto/declarative/visual/flickable/flickable.xml
@@ -0,0 +1,43 @@
+<Rect color="lightSteelBlue" width="800" height="500">
+ <ListModel id="List">
+ <Day>
+ <name>Sunday</name>
+ <dayColor>#808080</dayColor>
+ </Day>
+ <Day>
+ <name>Monday</name>
+ <dayColor>blue</dayColor>
+ </Day>
+ <Day>
+ <name>Tuesday</name>
+ <dayColor>yellow</dayColor>
+ </Day>
+ <Day>
+ <name>Wednesday</name>
+ <dayColor>purple</dayColor>
+ </Day>
+ <Day>
+ <name>Thursday</name>
+ <dayColor>blue</dayColor>
+ </Day>
+ <Day>
+ <name>Friday</name>
+ <dayColor>green</dayColor>
+ </Day>
+ <Day>
+ <name>Saturday</name>
+ <dayColor>orange</dayColor>
+ </Day>
+ </ListModel>
+
+ <Flickable id="Flick" anchors.fill="{parent}" viewportWidth="{Lay.width}">
+ <HorizontalLayout id="Lay">
+ <Repeater dataSource="{List}">
+ <Component>
+ <Day day="{name}" color="{dayColor}" />
+ </Component>
+ </Repeater>
+ </HorizontalLayout>
+ </Flickable>
+
+</Rect>