@@ -15,22 +15,8 @@ MenuItem {
1515 spacing: 4
1616 horizontalPadding: 8
1717
18- // property int subMenuIndex
19- // property var statusPopupMenu: null
20-
2118 readonly property string logObjectName: " StatusMenuItemDelegate [%1, %2]" .arg (this ).arg (text)
2219
23- // Component.onCompleted: {
24- // console.log("<---", logObjectName, " completed:", statusPopupMenu, menu, subMenu, action)
25- // }
26-
27- // onMenuChanged: console.log("<--- ", logObjectName, " menu changed: ", menu)
28- // onActionChanged: console.log("<--- ", logObjectName, " action changed: ", action, action.text, text)
29-
30- action: StatusMenuItem {
31- // onTriggered: { statusPopupMenu.menuItemClicked(root.subMenuIndex); }
32- }
33-
3420 QtObject {
3521 id: d
3622
@@ -113,9 +99,6 @@ MenuItem {
11399 x: root .mirrored ? root .width - width - root .rightPadding : root .leftPadding
114100 y: root .topPadding + (root .availableHeight - height) / 2
115101
116- // anchors.verticalCenter: parent.verticalCenter
117- // anchors.left: parent.left
118- // anchors.leftMargin: root.leftPadding
119102 implicitWidth: 24
120103 implicitHeight: 24
121104 visible: d .assetSettings .isLetterIdenticon
@@ -139,14 +122,10 @@ MenuItem {
139122 contentItem: StatusBaseText {
140123 readonly property real arrowPadding: root .subMenu && root .arrow ? root .arrow .width + root .spacing : 0
141124 readonly property real indicatorPadding: root .indicator .visible ? root .indicator .width + root .spacing : 0
125+
142126 leftPadding: ! root .mirrored ? indicatorPadding : arrowPadding
143127 rightPadding: root .mirrored ? indicatorPadding : arrowPadding
144128
145- // anchors.left: root.indicator.visible ? parent.indicator.right : parent.left
146- // anchors.right: arrowIcon.visible ? arrowIcon.left : arrowIcon.right
147- // anchors.rightMargin: root.rightPadding
148- // anchors.leftMargin: root.spacing
149-
150129 horizontalAlignment: Text .AlignLeft
151130 verticalAlignment: Text .AlignVCenter
152131
@@ -166,9 +145,6 @@ MenuItem {
166145 x: root .mirrored ? root .leftPadding : root .width - width - root .rightPadding
167146 y: root .topPadding + (root .availableHeight - height) / 2
168147
169- // anchors.verticalCenter: parent.verticalCenter
170- // anchors.right: parent.right
171- // anchors.rightMargin: root.rightPadding
172148 height: 16
173149 visible: d .isSubMenu
174150 icon: " next"
0 commit comments