tests/auto/declarative/qdeclarativeviewer/data/orientation.qml
changeset 30 5dc02b23752f
child 33 3e2da88830cd
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
       
     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 }