Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/items/StatusNotifierItem.qml
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | 49 | PlasmaCore.IconItem { | |||
---|---|---|---|---|---|
54 | active: taskIcon.containsMouse | 54 | active: taskIcon.containsMouse | ||
55 | 55 | | |||
56 | anchors { | 56 | anchors { | ||
57 | left: parent.left | 57 | left: parent.left | ||
58 | verticalCenter: parent.verticalCenter | 58 | verticalCenter: parent.verticalCenter | ||
59 | } | 59 | } | ||
60 | } | 60 | } | ||
61 | 61 | | |||
62 | onContextMenu: { | ||||
63 | openContextMenu(plasmoid.nativeInterface.popupPosition(taskIcon, mouse.x, mouse.y)) | ||||
64 | } | ||||
65 | | ||||
62 | onClicked: { | 66 | onClicked: { | ||
63 | var pos = plasmoid.nativeInterface.popupPosition(taskIcon, mouse.x, mouse.y); | 67 | var pos = plasmoid.nativeInterface.popupPosition(taskIcon, mouse.x, mouse.y); | ||
64 | 68 | | |||
65 | switch (mouse.button) { | 69 | switch (mouse.button) { | ||
66 | case Qt.LeftButton: { | 70 | case Qt.LeftButton: { | ||
67 | var service = statusNotifierSource.serviceForSource(DataEngineSource); | 71 | var service = statusNotifierSource.serviceForSource(DataEngineSource); | ||
68 | var operation = service.operationDescription("Activate"); | 72 | var operation = service.operationDescription("Activate"); | ||
69 | operation.x = pos.x; | 73 | operation.x = pos.x; | ||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |