aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/quick/window/AllScreens.qml5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/quick/window/AllScreens.qml b/examples/quick/window/AllScreens.qml
index ac0e1cb821..0cec36c0ab 100644
--- a/examples/quick/window/AllScreens.qml
+++ b/examples/quick/window/AllScreens.qml
@@ -72,11 +72,10 @@ Column {
required property string name
required property int virtualX
required property int virtualY
- required property int width
- required property int height
+ required property var modelData // avoid shadowing Label.width and height
lineHeight: 1.5
- text: name + "\n" + virtualX + ", " + virtualY + " " + width + "x" + height
+ text: name + "\n" + virtualX + ", " + virtualY + " " + modelData.width + "x" + modelData.height
}
}
}