mirror of https://github.com/qt/qtdoc.git
FX&MaterialShowroom: Remove reference to parent in ui.qml file
ui.qml files do not support referencing the top-level `parent`, and
qmllint produces a warning when this is done.
Thus, remove the line that refers to `parent` from the ui.qml file.
In this particular case the only usage site of the type defined by the
relevant .ui.qml file sets the relevant property on the spot, such that
there should be no change in semantic with the removal.
Task-number: QTBUG-138170
Change-Id: I68f9acc7c853afc1a62630a127bf1fa6eb891ec9
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
(cherry picked from commit d0b655dda8
)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
ba40a16b29
commit
a9c87d517d
|
@ -7,7 +7,6 @@ Item {
|
|||
id: scrollbar
|
||||
width: 4
|
||||
height: 764
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: -24
|
||||
property real scrollPos: 0
|
||||
|
||||
|
|
Loading…
Reference in New Issue