summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativepositioners/data/flow-testimplicitsize.qml
blob: 51c81348be3948e64a9c2961bc98bf10fd9ec023 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import QtQuick 1.0

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 }
    }
}