aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/window/AllScreens.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/window/AllScreens.qml')
-rw-r--r--examples/quick/window/AllScreens.qml4
1 files changed, 2 insertions, 2 deletions
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 + " " +