aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2021-05-03 10:45:55 +0200
committerMaximilian Goldstein <max.goldstein@qt.io>2021-05-03 13:10:51 +0200
commitf7856bc9614ba456e8a7eb7e8e78c33176a5d754 (patch)
tree03b5cfc6cb07bb350e5fbd0f174bdaa363959076 /examples/quick
parent47a1b9fabab20d363d74595677bb2aec09323510 (diff)
examples/quick: Explicitly cast Qt.application to (Quick) Application
Change-Id: Ib9ec9eb0e9f47d8ce758a3c93fee2d1a5abb73ac Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'examples/quick')
-rw-r--r--examples/quick/righttoleft/layoutdirection/layoutdirection.qml2
-rw-r--r--examples/quick/righttoleft/layoutmirroring/layoutmirroring.qml2
-rw-r--r--examples/quick/window/AllScreens.qml4
3 files changed, 4 insertions, 4 deletions
diff --git a/examples/quick/righttoleft/layoutdirection/layoutdirection.qml b/examples/quick/righttoleft/layoutdirection/layoutdirection.qml
index de111ea025..b83b9f4e65 100644
--- a/examples/quick/righttoleft/layoutdirection/layoutdirection.qml
+++ b/examples/quick/righttoleft/layoutdirection/layoutdirection.qml
@@ -53,7 +53,7 @@ import QtQuick 2.0
Rectangle {
id: root
property bool mirror
- property int direction: Qt.application.layoutDirection
+ property int direction: (Qt.application as Application).layoutDirection
LayoutMirroring.enabled: mirror
LayoutMirroring.childrenInherit: true
width: 320
diff --git a/examples/quick/righttoleft/layoutmirroring/layoutmirroring.qml b/examples/quick/righttoleft/layoutmirroring/layoutmirroring.qml
index 04d912eaa6..675e049b15 100644
--- a/examples/quick/righttoleft/layoutmirroring/layoutmirroring.qml
+++ b/examples/quick/righttoleft/layoutmirroring/layoutmirroring.qml
@@ -52,7 +52,7 @@ import QtQuick 2.0
Rectangle {
id: root
- property bool mirror: Qt.application.layoutDirection == Qt.RightToLeft
+ property bool mirror: (Qt.application as Application).layoutDirection == Qt.RightToLeft
LayoutMirroring.enabled: mirror
LayoutMirroring.childrenInherit: true
width: 320
diff --git a/examples/quick/window/AllScreens.qml b/examples/quick/window/AllScreens.qml
index 6f1a829410..1b49c4f337 100644
--- a/examples/quick/window/AllScreens.qml
+++ b/examples/quick/window/AllScreens.qml
@@ -66,7 +66,7 @@ Column {
Repeater {
id: screenInfo
- model: Qt.application.screens
+ model: (Qt.application as Application).screens
Label {
required property string name
required property int virtualX
@@ -80,7 +80,7 @@ Column {
}
Component.onCompleted: {
- var screens = Qt.application.screens;
+ var screens = (Qt.application as Application).screens;
for (var i = 0; i < screens.length; ++i)
console.log("screen " + screens[i].name + " has geometry " +
screens[i].virtualX + ", " + screens[i].virtualY + " " +