summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativepositioners/data
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-03-29 05:56:41 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-03-29 05:56:41 (GMT)
commit8c50262bfd9239bafdac0fbe03316af2b1e01d98 (patch)
tree4bdd624467403da3f835dc8a40f459b0c8c41b79 /tests/auto/declarative/qdeclarativepositioners/data
parentbe53372df21a099474ac0b28b95f29a077a8b3f0 (diff)
downloadQt-8c50262bfd9239bafdac0fbe03316af2b1e01d98.zip
Qt-8c50262bfd9239bafdac0fbe03316af2b1e01d98.tar.gz
Qt-8c50262bfd9239bafdac0fbe03316af2b1e01d98.tar.bz2
Relayout items when Flow size changes.
Also add Flow tests. Task-number: QTBUG-9421
Diffstat (limited to 'tests/auto/declarative/qdeclarativepositioners/data')
-rw-r--r--tests/auto/declarative/qdeclarativepositioners/data/flowtest.qml39
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativepositioners/data/flowtest.qml b/tests/auto/declarative/qdeclarativepositioners/data/flowtest.qml
new file mode 100644
index 0000000..bd13bac
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativepositioners/data/flowtest.qml
@@ -0,0 +1,39 @@
+import Qt 4.6
+
+Item {
+ width: 90
+ height: 480
+ Flow {
+ anchors.fill: parent
+ Rectangle {
+ objectName: "one"
+ color: "red"
+ width: 50
+ height: 50
+ }
+ Rectangle {
+ objectName: "two"
+ color: "green"
+ width: 20
+ height: 50
+ }
+ Rectangle {
+ objectName: "three"
+ color: "blue"
+ width: 50
+ height: 20
+ }
+ Rectangle {
+ objectName: "four"
+ color: "cyan"
+ width: 50
+ height: 50
+ }
+ Rectangle {
+ objectName: "five"
+ color: "magenta"
+ width: 10
+ height: 10
+ }
+ }
+}