Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativepositioners / data / flow-testimplicitsize.qml
1 import QtQuick 1.1
2
3 Rectangle {
4     width: 300; height: 200;
5
6     property int flowLayout: 1
7
8     Flow {
9         objectName: "flow"
10         layoutDirection: (flowLayout == 2) ? Qt.RightToLeft : Qt.LeftToRight
11         flow: (flowLayout == 1) ? Flow.TopToBottom : Flow.LeftToRight;
12
13         spacing: 20
14         anchors.horizontalCenter: parent.horizontalCenter
15         Rectangle { color: "red"; width: 100; height: 50 }
16         Rectangle { color: "blue"; width: 100; height: 50 }
17     }
18 }
19