Screen example: avoid shadowing final props with required context props

Amends 90b4528b84 to fix the error
qrc:/window/AllScreens.qml:75 Cannot override FINAL property

Change-Id: Ie6528f6c9ccc6648ec76b4d237973588450cc932
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Shawn Rutledge 2020-03-24 14:54:58 +00:00
parent 581250ff9e
commit 99215e04e3
1 changed files with 2 additions and 3 deletions

View File

@ -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
}
}
}