Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/ThumbnailStrip.qml
Show First 20 Lines • Show All 136 Lines • ▼ Show 20 Line(s) | 135 | anchors { | |||
---|---|---|---|---|---|
137 | right: parent.right | 137 | right: parent.right | ||
138 | margins: units.smallSpacing | 138 | margins: units.smallSpacing | ||
139 | } | 139 | } | ||
140 | tooltip: i18nd("plasma_applet_org.kde.plasma.notifications", "More Options...") | 140 | tooltip: i18nd("plasma_applet_org.kde.plasma.notifications", "More Options...") | ||
141 | Accessible.name: tooltip | 141 | Accessible.name: tooltip | ||
142 | iconName: "application-menu" | 142 | iconName: "application-menu" | ||
143 | checkable: true | 143 | checkable: true | ||
144 | 144 | | |||
145 | onPressedChanged: { | 145 | function onPressedChanged() { | ||
146 | if (pressed) { | 146 | if (pressed) { | ||
147 | // fake "pressed" while menu is open | 147 | // fake "pressed" while menu is open | ||
148 | checked = Qt.binding(function() { | 148 | checked = Qt.binding(function() { | ||
149 | return fileMenu.visible; | 149 | return fileMenu.visible; | ||
150 | }); | 150 | }); | ||
151 | 151 | | |||
152 | fileMenu.visualParent = this; | 152 | fileMenu.visualParent = this; | ||
153 | // -1 tells it to "align bottom left of visualParent (this)" | 153 | // -1 tells it to "align bottom left of visualParent (this)" | ||
154 | fileMenu.open(-1, -1); | 154 | fileMenu.open(-1, -1); | ||
155 | } | 155 | } | ||
156 | } | 156 | } | ||
157 | } | 157 | } | ||
158 | } | 158 | } | ||
159 | } | 159 | } |