Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit 733d571

Browse files
committed
Unused code removed
1 parent 7bf2561 commit 733d571

File tree

2 files changed

+2
-47
lines changed

2 files changed

+2
-47
lines changed

src/StatusQ/Popups/StatusMenuItemDelegate.qml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -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"

src/StatusQ/Popups/StatusPopupMenu.qml

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,11 @@ import StatusQ.Popups 0.1
1111
Menu {
1212
id: root
1313

14-
// Component.onCompleted: {
15-
// let parents = "";
16-
// let p = parent;
17-
// while (p) {
18-
// parents += " <- " + p;
19-
// p = p.parent;
20-
// }
21-
//// console.log("<-- StatusPopupMenu created", this, parents);
22-
// }
23-
2414
closePolicy: Popup.CloseOnPressOutside | Popup.CloseOnEscape
2515
topPadding: 8
2616
bottomPadding: 8
2717
bottomMargin: 16
2818

29-
// property int menuItemCount: 0
30-
// property var subMenuItemIcons: []
31-
32-
// source: model.imageSource, // -> StatusRoundedImage.image.source
33-
// icon: model.iconName, // -> StatusIcon.icon
34-
// isIdenticon: model.isIdenticon, // -> StatusRoundImage.border.width
35-
// color: model.iconColor, // -> StatusLetterIdenticon.color,
36-
// isLetterIdenticon: !model.imageSource && !model.iconName // -> decide indicator component
37-
3819
property StatusAssetSettings assetSettings: StatusAssetSettings {
3920
width: 18
4021
height: 18
@@ -67,9 +48,7 @@ Menu {
6748
}
6849
}
6950

70-
delegate: StatusMenuItemDelegate {
71-
// statusPopupMenu: root
72-
}
51+
delegate: StatusMenuItemDelegate { }
7352

7453
contentItem: StatusListView {
7554
currentIndex: root.currentIndex

0 commit comments

Comments
 (0)