@@ -15,22 +15,8 @@ MenuItem {
15
15
spacing: 4
16
16
horizontalPadding: 8
17
17
18
- // property int subMenuIndex
19
- // property var statusPopupMenu: null
20
-
21
18
readonly property string logObjectName: " StatusMenuItemDelegate [%1, %2]" .arg (this ).arg (text)
22
19
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
-
34
20
QtObject {
35
21
id: d
36
22
@@ -113,9 +99,6 @@ MenuItem {
113
99
x: root .mirrored ? root .width - width - root .rightPadding : root .leftPadding
114
100
y: root .topPadding + (root .availableHeight - height) / 2
115
101
116
- // anchors.verticalCenter: parent.verticalCenter
117
- // anchors.left: parent.left
118
- // anchors.leftMargin: root.leftPadding
119
102
implicitWidth: 24
120
103
implicitHeight: 24
121
104
visible: d .assetSettings .isLetterIdenticon
@@ -139,14 +122,10 @@ MenuItem {
139
122
contentItem: StatusBaseText {
140
123
readonly property real arrowPadding: root .subMenu && root .arrow ? root .arrow .width + root .spacing : 0
141
124
readonly property real indicatorPadding: root .indicator .visible ? root .indicator .width + root .spacing : 0
125
+
142
126
leftPadding: ! root .mirrored ? indicatorPadding : arrowPadding
143
127
rightPadding: root .mirrored ? indicatorPadding : arrowPadding
144
128
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
-
150
129
horizontalAlignment: Text .AlignLeft
151
130
verticalAlignment: Text .AlignVCenter
152
131
@@ -166,9 +145,6 @@ MenuItem {
166
145
x: root .mirrored ? root .leftPadding : root .width - width - root .rightPadding
167
146
y: root .topPadding + (root .availableHeight - height) / 2
168
147
169
- // anchors.verticalCenter: parent.verticalCenter
170
- // anchors.right: parent.right
171
- // anchors.rightMargin: root.rightPadding
172
148
height: 16
173
149
visible: d .isSubMenu
174
150
icon: " next"
0 commit comments