summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativepositioners/data
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2010-06-29 02:39:30 (GMT)
committerJoona Petrell <joona.t.petrell@nokia.com>2010-06-29 03:10:19 (GMT)
commitf54353bf2f566335e44d20b5263fe19d5ac33d1e (patch)
tree5470e997ef138b2d0a6562ef4f24cb2f747fcc41 /tests/auto/declarative/qdeclarativepositioners/data
parentb1b46d4e5bd9e4ef355d8bbc13900d7489fb4bf9 (diff)
downloadQt-f54353bf2f566335e44d20b5263fe19d5ac33d1e.zip
Qt-f54353bf2f566335e44d20b5263fe19d5ac33d1e.tar.gz
Qt-f54353bf2f566335e44d20b5263fe19d5ac33d1e.tar.bz2
Fix flow layout not taking into account whether it's width and height are implicit or not.
Task-number: QTBUG-11778 Reviewed-by: Martin Jones
Diffstat (limited to 'tests/auto/declarative/qdeclarativepositioners/data')
-rw-r--r--tests/auto/declarative/qdeclarativepositioners/data/flow-testimplicitsize.qml16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativepositioners/data/flow-testimplicitsize.qml b/tests/auto/declarative/qdeclarativepositioners/data/flow-testimplicitsize.qml
new file mode 100644
index 0000000..6dd108e
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativepositioners/data/flow-testimplicitsize.qml
@@ -0,0 +1,16 @@
+import Qt 4.7
+
+Rectangle {
+ width: 300; height: 200;
+
+ property bool leftToRight: false
+
+ Flow {
+ objectName: "flow"
+ flow: leftToRight ? Flow.LeftToRight : Flow.TopToBottom
+ spacing: 20
+ anchors.horizontalCenter: parent.horizontalCenter
+ Rectangle { color: "red"; width: 100; height: 50 }
+ Rectangle { color: "blue"; width: 100; height: 50 }
+ }
+} \ No newline at end of file