tests/auto/declarative/qdeclarativeviewer/data/orientation.qml
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
child 33 3e2da88830cd
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
       
     1 import Qt 4.7
       
     2 Rectangle {
       
     3     color: "black"
       
     4     width: (runtime.orientation == Orientation.Landscape) ? 300 : 200
       
     5     height: (runtime.orientation == Orientation.Landscape) ? 200 : 300
       
     6     Text {
       
     7         text: runtime.orientation == Orientation.Landscape ? "Landscape" : "Portrait"
       
     8         color: "white"
       
     9     }
       
    10 }