on xenial help sign in
Reduce MenuItem warnings

I'm not sure why parent isn't set on RowLayout, but it's able to anchor correctly and doesn't complain when referencing root.

commit28c9aa3be4398c45a361f03830c8ce25efc0d0ed authorDalton Durst <dalton@ubports.com> dateThu 9 May 2019, 13:08 (7 years ago) parent8cb81fa
1 file changed+3−3
qml/ApplicationMenus/MenuItem.qml+3−3
qml/ApplicationMenus/MenuItem.qml+3−3
@@ -77,11 +77,11 @@ ActionItem {
7777 RowLayout {
7878 id: row
7979 spacing: units.gu(1)
80− anchors.left: parent.left
81− anchors.right: parent.right
80+ anchors.left: root.left
81+ anchors.right: root.right
8282 anchors.leftMargin: units.gu(1)
8383 anchors.rightMargin: units.gu(1)
84− anchors.verticalCenter: parent.verticalCenter
84+ anchors.verticalCenter: root.verticalCenter
8585
8686 Item {
8787 Layout.minimumWidth: units.gu(1.5)