summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/layouts/data
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/layouts/data')
-rw-r--r--tests/auto/declarative/layouts/data/grid-margin.qml38
-rw-r--r--tests/auto/declarative/layouts/data/grid-margin.xml9
-rw-r--r--tests/auto/declarative/layouts/data/grid-spacing-margin.qml39
-rw-r--r--tests/auto/declarative/layouts/data/grid-spacing-margin.xml9
-rw-r--r--tests/auto/declarative/layouts/data/grid-spacing.qml38
-rw-r--r--tests/auto/declarative/layouts/data/grid-spacing.xml9
-rw-r--r--tests/auto/declarative/layouts/data/grid.qml37
-rw-r--r--tests/auto/declarative/layouts/data/grid.xml9
-rw-r--r--tests/auto/declarative/layouts/data/horizontal-margin.qml25
-rw-r--r--tests/auto/declarative/layouts/data/horizontal-margin.xml7
-rw-r--r--tests/auto/declarative/layouts/data/horizontal-spacing-margin.qml26
-rw-r--r--tests/auto/declarative/layouts/data/horizontal-spacing-margin.xml7
-rw-r--r--tests/auto/declarative/layouts/data/horizontal-spacing.qml25
-rw-r--r--tests/auto/declarative/layouts/data/horizontal-spacing.xml7
-rw-r--r--tests/auto/declarative/layouts/data/horizontal.qml24
-rw-r--r--tests/auto/declarative/layouts/data/horizontal.xml7
-rw-r--r--tests/auto/declarative/layouts/data/vertical-margin.qml25
-rw-r--r--tests/auto/declarative/layouts/data/vertical-margin.xml7
-rw-r--r--tests/auto/declarative/layouts/data/vertical-spacing-margin.qml26
-rw-r--r--tests/auto/declarative/layouts/data/vertical-spacing-margin.xml7
-rw-r--r--tests/auto/declarative/layouts/data/vertical-spacing.qml25
-rw-r--r--tests/auto/declarative/layouts/data/vertical-spacing.xml7
-rw-r--r--tests/auto/declarative/layouts/data/vertical.qml24
-rw-r--r--tests/auto/declarative/layouts/data/vertical.xml7
24 files changed, 352 insertions, 92 deletions
diff --git a/tests/auto/declarative/layouts/data/grid-margin.qml b/tests/auto/declarative/layouts/data/grid-margin.qml
new file mode 100644
index 0000000..bae47f9
--- /dev/null
+++ b/tests/auto/declarative/layouts/data/grid-margin.qml
@@ -0,0 +1,38 @@
+Item {
+ width: 640
+ height: 480
+ GridLayout {
+ columns: 3
+ margin: 8
+ Rect {
+ id: one
+ color: "red"
+ width: 50
+ height: 50
+ }
+ Rect {
+ id: two
+ color: "green"
+ width: 20
+ height: 50
+ }
+ Rect {
+ id: three
+ color: "blue"
+ width: 50
+ height: 20
+ }
+ Rect {
+ id: four
+ color: "cyan"
+ width: 50
+ height: 50
+ }
+ Rect {
+ id: five
+ color: "magenta"
+ width: 10
+ height: 10
+ }
+ }
+}
diff --git a/tests/auto/declarative/layouts/data/grid-margin.xml b/tests/auto/declarative/layouts/data/grid-margin.xml
deleted file mode 100644
index fe58eef..0000000
--- a/tests/auto/declarative/layouts/data/grid-margin.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<Item width="640" height="480">
- <GridLayout columns="3" margin="8">
- <Rect id="one" color="red" width="50" height="50"/>
- <Rect id="two" color="green" width="20" height="50"/>
- <Rect id="three" color="blue" width="50" height="20"/>
- <Rect id="four" color="cyan" width="50" height="50"/>
- <Rect id="five" color="magenta" width="10" height="10"/>
- </GridLayout>
-</Item>
diff --git a/tests/auto/declarative/layouts/data/grid-spacing-margin.qml b/tests/auto/declarative/layouts/data/grid-spacing-margin.qml
new file mode 100644
index 0000000..100d8c5
--- /dev/null
+++ b/tests/auto/declarative/layouts/data/grid-spacing-margin.qml
@@ -0,0 +1,39 @@
+Item {
+ width: 640
+ height: 480
+ GridLayout {
+ columns: 3
+ spacing: 4
+ margin: 8
+ Rect {
+ id: one
+ color: "red"
+ width: 50
+ height: 50
+ }
+ Rect {
+ id: two
+ color: "green"
+ width: 20
+ height: 50
+ }
+ Rect {
+ id: three
+ color: "blue"
+ width: 50
+ height: 20
+ }
+ Rect {
+ id: four
+ color: "cyan"
+ width: 50
+ height: 50
+ }
+ Rect {
+ id: five
+ color: "magenta"
+ width: 10
+ height: 10
+ }
+ }
+}
diff --git a/tests/auto/declarative/layouts/data/grid-spacing-margin.xml b/tests/auto/declarative/layouts/data/grid-spacing-margin.xml
deleted file mode 100644
index 807b653..0000000
--- a/tests/auto/declarative/layouts/data/grid-spacing-margin.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<Item width="640" height="480">
- <GridLayout columns="3" spacing="4" margin="8">
- <Rect id="one" color="red" width="50" height="50"/>
- <Rect id="two" color="green" width="20" height="50"/>
- <Rect id="three" color="blue" width="50" height="20"/>
- <Rect id="four" color="cyan" width="50" height="50"/>
- <Rect id="five" color="magenta" width="10" height="10"/>
- </GridLayout>
-</Item>
diff --git a/tests/auto/declarative/layouts/data/grid-spacing.qml b/tests/auto/declarative/layouts/data/grid-spacing.qml
new file mode 100644
index 0000000..494127b
--- /dev/null
+++ b/tests/auto/declarative/layouts/data/grid-spacing.qml
@@ -0,0 +1,38 @@
+Item {
+ width: 640
+ height: 480
+ GridLayout {
+ columns: 3
+ spacing: 4
+ Rect {
+ id: one
+ color: "red"
+ width: 50
+ height: 50
+ }
+ Rect {
+ id: two
+ color: "green"
+ width: 20
+ height: 50
+ }
+ Rect {
+ id: three
+ color: "blue"
+ width: 50
+ height: 20
+ }
+ Rect {
+ id: four
+ color: "cyan"
+ width: 50
+ height: 50
+ }
+ Rect {
+ id: five
+ color: "magenta"
+ width: 10
+ height: 10
+ }
+ }
+}
diff --git a/tests/auto/declarative/layouts/data/grid-spacing.xml b/tests/auto/declarative/layouts/data/grid-spacing.xml
deleted file mode 100644
index 55ef5a5..0000000
--- a/tests/auto/declarative/layouts/data/grid-spacing.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<Item width="640" height="480">
- <GridLayout columns="3" spacing="4">
- <Rect id="one" color="red" width="50" height="50"/>
- <Rect id="two" color="green" width="20" height="50"/>
- <Rect id="three" color="blue" width="50" height="20"/>
- <Rect id="four" color="cyan" width="50" height="50"/>
- <Rect id="five" color="magenta" width="10" height="10"/>
- </GridLayout>
-</Item>
diff --git a/tests/auto/declarative/layouts/data/grid.qml b/tests/auto/declarative/layouts/data/grid.qml
new file mode 100644
index 0000000..598915f
--- /dev/null
+++ b/tests/auto/declarative/layouts/data/grid.qml
@@ -0,0 +1,37 @@
+Item {
+ width: 640
+ height: 480
+ GridLayout {
+ columns: 3
+ Rect {
+ id: one
+ color: "red"
+ width: 50
+ height: 50
+ }
+ Rect {
+ id: two
+ color: "green"
+ width: 20
+ height: 50
+ }
+ Rect {
+ id: three
+ color: "blue"
+ width: 50
+ height: 20
+ }
+ Rect {
+ id: four
+ color: "cyan"
+ width: 50
+ height: 50
+ }
+ Rect {
+ id: five
+ color: "magenta"
+ width: 10
+ height: 10
+ }
+ }
+}
diff --git a/tests/auto/declarative/layouts/data/grid.xml b/tests/auto/declarative/layouts/data/grid.xml
deleted file mode 100644
index abef813..0000000
--- a/tests/auto/declarative/layouts/data/grid.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<Item width="640" height="480">
- <GridLayout columns="3">
- <Rect id="one" color="red" width="50" height="50"/>
- <Rect id="two" color="green" width="20" height="50"/>
- <Rect id="three" color="blue" width="50" height="20"/>
- <Rect id="four" color="cyan" width="50" height="50"/>
- <Rect id="five" color="magenta" width="10" height="10"/>
- </GridLayout>
-</Item>
diff --git a/tests/auto/declarative/layouts/data/horizontal-margin.qml b/tests/auto/declarative/layouts/data/horizontal-margin.qml
new file mode 100644
index 0000000..8bf2329
--- /dev/null
+++ b/tests/auto/declarative/layouts/data/horizontal-margin.qml
@@ -0,0 +1,25 @@
+Item {
+ width: 640
+ height: 480
+ HorizontalLayout {
+ margin: 10
+ Rect {
+ id: one
+ color: "red"
+ width: 50
+ height: 50
+ }
+ Rect {
+ id: two
+ color: "red"
+ width: 20
+ height: 10
+ }
+ Rect {
+ id: three
+ color: "red"
+ width: 40
+ height: 20
+ }
+ }
+}
diff --git a/tests/auto/declarative/layouts/data/horizontal-margin.xml b/tests/auto/declarative/layouts/data/horizontal-margin.xml
deleted file mode 100644
index 7ee9706..0000000
--- a/tests/auto/declarative/layouts/data/horizontal-margin.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<Item width="640" height="480">
- <HorizontalLayout margin="10">
- <Rect id="one" color="red" width="50" height="50"/>
- <Rect id="two" color="red" width="20" height="10"/>
- <Rect id="three" color="red" width="40" height="20"/>
- </HorizontalLayout>
-</Item>
diff --git a/tests/auto/declarative/layouts/data/horizontal-spacing-margin.qml b/tests/auto/declarative/layouts/data/horizontal-spacing-margin.qml
new file mode 100644
index 0000000..79652f6
--- /dev/null
+++ b/tests/auto/declarative/layouts/data/horizontal-spacing-margin.qml
@@ -0,0 +1,26 @@
+Item {
+ width: 640
+ height: 480
+ HorizontalLayout {
+ spacing: 5
+ margin: 10
+ Rect {
+ id: one
+ color: "red"
+ width: 50
+ height: 50
+ }
+ Rect {
+ id: two
+ color: "red"
+ width: 20
+ height: 10
+ }
+ Rect {
+ id: three
+ color: "red"
+ width: 40
+ height: 20
+ }
+ }
+}
diff --git a/tests/auto/declarative/layouts/data/horizontal-spacing-margin.xml b/tests/auto/declarative/layouts/data/horizontal-spacing-margin.xml
deleted file mode 100644
index 8767818..0000000
--- a/tests/auto/declarative/layouts/data/horizontal-spacing-margin.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<Item width="640" height="480">
- <HorizontalLayout spacing="5" margin="10">
- <Rect id="one" color="red" width="50" height="50"/>
- <Rect id="two" color="red" width="20" height="10"/>
- <Rect id="three" color="red" width="40" height="20"/>
- </HorizontalLayout>
-</Item>
diff --git a/tests/auto/declarative/layouts/data/horizontal-spacing.qml b/tests/auto/declarative/layouts/data/horizontal-spacing.qml
new file mode 100644
index 0000000..5130e4a
--- /dev/null
+++ b/tests/auto/declarative/layouts/data/horizontal-spacing.qml
@@ -0,0 +1,25 @@
+Item {
+ width: 640
+ height: 480
+ HorizontalLayout {
+ spacing: 10
+ Rect {
+ id: one
+ color: "red"
+ width: 50
+ height: 50
+ }
+ Rect {
+ id: two
+ color: "red"
+ width: 20
+ height: 10
+ }
+ Rect {
+ id: three
+ color: "red"
+ width: 40
+ height: 20
+ }
+ }
+}
diff --git a/tests/auto/declarative/layouts/data/horizontal-spacing.xml b/tests/auto/declarative/layouts/data/horizontal-spacing.xml
deleted file mode 100644
index cb58711..0000000
--- a/tests/auto/declarative/layouts/data/horizontal-spacing.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<Item width="640" height="480">
- <HorizontalLayout spacing="10">
- <Rect id="one" color="red" width="50" height="50"/>
- <Rect id="two" color="red" width="20" height="10"/>
- <Rect id="three" color="red" width="40" height="20"/>
- </HorizontalLayout>
-</Item>
diff --git a/tests/auto/declarative/layouts/data/horizontal.qml b/tests/auto/declarative/layouts/data/horizontal.qml
new file mode 100644
index 0000000..7ad6b55
--- /dev/null
+++ b/tests/auto/declarative/layouts/data/horizontal.qml
@@ -0,0 +1,24 @@
+Item {
+ width: 640
+ height: 480
+ HorizontalLayout {
+ Rect {
+ id: one
+ color: "red"
+ width: 50
+ height: 50
+ }
+ Rect {
+ id: two
+ color: "red"
+ width: 20
+ height: 10
+ }
+ Rect {
+ id: three
+ color: "red"
+ width: 40
+ height: 20
+ }
+ }
+}
diff --git a/tests/auto/declarative/layouts/data/horizontal.xml b/tests/auto/declarative/layouts/data/horizontal.xml
deleted file mode 100644
index f9deaf1..0000000
--- a/tests/auto/declarative/layouts/data/horizontal.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<Item width="640" height="480">
- <HorizontalLayout>
- <Rect id="one" color="red" width="50" height="50"/>
- <Rect id="two" color="red" width="20" height="10"/>
- <Rect id="three" color="red" width="40" height="20"/>
- </HorizontalLayout>
-</Item>
diff --git a/tests/auto/declarative/layouts/data/vertical-margin.qml b/tests/auto/declarative/layouts/data/vertical-margin.qml
new file mode 100644
index 0000000..ad34906
--- /dev/null
+++ b/tests/auto/declarative/layouts/data/vertical-margin.qml
@@ -0,0 +1,25 @@
+Item {
+ width: 640
+ height: 480
+ VerticalLayout {
+ margin: 10
+ Rect {
+ id: one
+ color: "red"
+ width: 50
+ height: 50
+ }
+ Rect {
+ id: two
+ color: "red"
+ width: 20
+ height: 10
+ }
+ Rect {
+ id: three
+ color: "red"
+ width: 40
+ height: 20
+ }
+ }
+}
diff --git a/tests/auto/declarative/layouts/data/vertical-margin.xml b/tests/auto/declarative/layouts/data/vertical-margin.xml
deleted file mode 100644
index abd7635..0000000
--- a/tests/auto/declarative/layouts/data/vertical-margin.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<Item width="640" height="480">
- <VerticalLayout margin="10">
- <Rect id="one" color="red" width="50" height="50"/>
- <Rect id="two" color="red" width="20" height="10"/>
- <Rect id="three" color="red" width="40" height="20"/>
- </VerticalLayout>
-</Item>
diff --git a/tests/auto/declarative/layouts/data/vertical-spacing-margin.qml b/tests/auto/declarative/layouts/data/vertical-spacing-margin.qml
new file mode 100644
index 0000000..5de50b3
--- /dev/null
+++ b/tests/auto/declarative/layouts/data/vertical-spacing-margin.qml
@@ -0,0 +1,26 @@
+Item {
+ width: 640
+ height: 480
+ VerticalLayout {
+ spacing: 5
+ margin: 10
+ Rect {
+ id: one
+ color: "red"
+ width: 50
+ height: 50
+ }
+ Rect {
+ id: two
+ color: "red"
+ width: 20
+ height: 10
+ }
+ Rect {
+ id: three
+ color: "red"
+ width: 40
+ height: 20
+ }
+ }
+}
diff --git a/tests/auto/declarative/layouts/data/vertical-spacing-margin.xml b/tests/auto/declarative/layouts/data/vertical-spacing-margin.xml
deleted file mode 100644
index 3d41ca0..0000000
--- a/tests/auto/declarative/layouts/data/vertical-spacing-margin.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<Item width="640" height="480">
- <VerticalLayout spacing="5" margin="10">
- <Rect id="one" color="red" width="50" height="50"/>
- <Rect id="two" color="red" width="20" height="10"/>
- <Rect id="three" color="red" width="40" height="20"/>
- </VerticalLayout>
-</Item>
diff --git a/tests/auto/declarative/layouts/data/vertical-spacing.qml b/tests/auto/declarative/layouts/data/vertical-spacing.qml
new file mode 100644
index 0000000..c364e3f
--- /dev/null
+++ b/tests/auto/declarative/layouts/data/vertical-spacing.qml
@@ -0,0 +1,25 @@
+Item {
+ width: 640
+ height: 480
+ VerticalLayout {
+ spacing: 10
+ Rect {
+ id: one
+ color: "red"
+ width: 50
+ height: 50
+ }
+ Rect {
+ id: two
+ color: "red"
+ width: 20
+ height: 10
+ }
+ Rect {
+ id: three
+ color: "red"
+ width: 40
+ height: 20
+ }
+ }
+}
diff --git a/tests/auto/declarative/layouts/data/vertical-spacing.xml b/tests/auto/declarative/layouts/data/vertical-spacing.xml
deleted file mode 100644
index e25f981..0000000
--- a/tests/auto/declarative/layouts/data/vertical-spacing.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<Item width="640" height="480">
- <VerticalLayout spacing="10">
- <Rect id="one" color="red" width="50" height="50"/>
- <Rect id="two" color="red" width="20" height="10"/>
- <Rect id="three" color="red" width="40" height="20"/>
- </VerticalLayout>
-</Item>
diff --git a/tests/auto/declarative/layouts/data/vertical.qml b/tests/auto/declarative/layouts/data/vertical.qml
new file mode 100644
index 0000000..50931cd
--- /dev/null
+++ b/tests/auto/declarative/layouts/data/vertical.qml
@@ -0,0 +1,24 @@
+Item {
+ width: 640
+ height: 480
+ VerticalLayout {
+ Rect {
+ id: one
+ color: "red"
+ width: 50
+ height: 50
+ }
+ Rect {
+ id: two
+ color: "red"
+ width: 20
+ height: 10
+ }
+ Rect {
+ id: three
+ color: "red"
+ width: 40
+ height: 20
+ }
+ }
+}
diff --git a/tests/auto/declarative/layouts/data/vertical.xml b/tests/auto/declarative/layouts/data/vertical.xml
deleted file mode 100644
index 198d99f..0000000
--- a/tests/auto/declarative/layouts/data/vertical.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<Item width="640" height="480">
- <VerticalLayout>
- <Rect id="one" color="red" width="50" height="50"/>
- <Rect id="two" color="red" width="20" height="10"/>
- <Rect id="three" color="red" width="40" height="20"/>
- </VerticalLayout>
-</Item>