aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative
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
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')
-rw-r--r--examples/declarative/calculator/calculator.qml2
-rw-r--r--examples/declarative/window/screen/screenInfo.qml2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/calculator/calculator.qml b/examples/declarative/calculator/calculator.qml
index cfec9c185f..82fa1c1a3e 100644
--- a/examples/declarative/calculator/calculator.qml
+++ b/examples/declarative/calculator/calculator.qml
@@ -62,7 +62,7 @@ Rectangle {
Item {
id: main
- state: "orientation " + Screen.currentOrientation
+ state: "orientation " + Screen.orientation
property bool landscapeWindow: window.width > window.height
property real baseWidth: landscapeWindow ? window.height : window.width
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