Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativepositioners / data / flowtest.qml
1 import QtQuick 1.1
2
3 Item {
4     width: 90
5     height: 480
6     property bool testRightToLeft: false
7
8     Flow {
9         objectName: "flow"
10         width: parent.width
11         layoutDirection: testRightToLeft ? Qt.RightToLeft : Qt.LeftToRight
12         Rectangle {
13             objectName: "one"
14             color: "red"
15             width: 50
16             height: 50
17         }
18         Rectangle {
19             objectName: "two"
20             color: "green"
21             width: 20
22             height: 50
23         }
24         Rectangle {
25             objectName: "three"
26             color: "blue"
27             width: 50
28             height: 20
29         }
30         Rectangle {
31             objectName: "four"
32             color: "cyan"
33             width: 50
34             height: 50
35         }
36         Rectangle {
37             objectName: "five"
38             color: "magenta"
39             width: 10
40             height: 10
41         }
42     }
43 }