aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/window/screen/screenInfo.qml
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2012-01-24 10:04:45 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-24 21:01:53 +0100
commitd2d53dffbc3ba52333e559e2c0391bd73e5b840c (patch)
treef156da156fe9d715e58ac5d8cc5e5cecfbb46a0a /examples/declarative/window/screen/screenInfo.qml
parent40bbc9503b988412202836bc4d10a0a9f645a940 (diff)
Adapted QQuickScreenAttached to orientation API changes in QScreen.
Change-Id: Ic2cb008b989780e297f03ddd5bdef466bb230c74 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'examples/declarative/window/screen/screenInfo.qml')
-rw-r--r--examples/declarative/window/screen/screenInfo.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/declarative/window/screen/screenInfo.qml b/examples/declarative/window/screen/screenInfo.qml
index 53028a41e6..9a9727693f 100644
--- a/examples/declarative/window/screen/screenInfo.qml
+++ b/examples/declarative/window/screen/screenInfo.qml
@@ -47,7 +47,7 @@ Item {
height: 200
Item {
id: main
- state: "orientation " + Window.Screen.currentOrientation
+ state: "orientation " + Window.Screen.orientation
property bool landscapeWindow: Window.Screen.primaryOrientation == Qt.LandscapeOrientation
property real baseWidth: landscapeWindow ? root.height : root.width