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:
parent
581250ff9e
commit
99215e04e3
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue