diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/calculator/calculator.qml | 2 | ||||
-rw-r--r-- | examples/declarative/window/screen/screenInfo.qml | 2 |
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 |