Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/JobItem.qml
Show First 20 Lines • Show All 178 Lines • ▼ Show 20 Line(s) | 173 | Flow { // it's a Flow so it can wrap if too long | |||
---|---|---|---|---|---|
179 | visible: url && url.toString() !== "" | 179 | visible: url && url.toString() !== "" | ||
180 | 180 | | |||
181 | PlasmaComponents.Button { | 181 | PlasmaComponents.Button { | ||
182 | id: otherFileActionsButton | 182 | id: otherFileActionsButton | ||
183 | height: Math.max(implicitHeight, openButton.implicitHeight) | 183 | height: Math.max(implicitHeight, openButton.implicitHeight) | ||
184 | iconName: "application-menu" | 184 | iconName: "application-menu" | ||
185 | tooltip: i18nd("plasma_applet_org.kde.plasma.notifications", "More Options...") | 185 | tooltip: i18nd("plasma_applet_org.kde.plasma.notifications", "More Options...") | ||
186 | checkable: true | 186 | checkable: true | ||
187 | onPressedChanged: { | 187 | function onPressedChanged() { | ||
188 | if (pressed) { | 188 | if (pressed) { | ||
189 | checked = Qt.binding(function() { | 189 | checked = Qt.binding(function() { | ||
190 | return otherFileActionsMenu.visible; | 190 | return otherFileActionsMenu.visible; | ||
191 | }); | 191 | }); | ||
192 | otherFileActionsMenu.visualParent = this; | 192 | otherFileActionsMenu.visualParent = this; | ||
193 | // -1 tells it to "align bottom left of visualParent (this)" | 193 | // -1 tells it to "align bottom left of visualParent (this)" | ||
194 | otherFileActionsMenu.open(-1, -1); | 194 | otherFileActionsMenu.open(-1, -1); | ||
195 | } | 195 | } | ||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |