summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeviewer/data/orientation.qml
blob: 687fac64fa5eb3e8532ecd0a30fa132ff2b96399 (plain)
1
2
3
4
5
6
7
8
9
10
import Qt 4.7
Rectangle {
    color: "black"
    width: (runtime.orientation == Orientation.Landscape) ? 300 : 200
    height: (runtime.orientation == Orientation.Landscape) ? 200 : 300
    Text {
        text: runtime.orientation == Orientation.Landscape ? "Landscape" : "Portrait"
        color: "white"
    }
}