Commit 890e91b2 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

systray: show a the context menu upon press an hold on the icon

Summary: This way we can open the context menu from touch

Test Plan: Tapped and hold on my screen

Reviewers: #plasma, ngraham

Reviewed By: ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D19946
parent 8ef6104a
......@@ -112,6 +112,9 @@ PlasmaCore.ToolTipArea {
abstractItem.contextMenu(mouse)
}
}
onPressAndHold: {
abstractItem.contextMenu(mouse)
}
onWheel: {
abstractItem.wheel(wheel);
//Don't accept the event in order to make the scrolling by mouse wheel working
......
......@@ -59,6 +59,10 @@ AbstractItem {
}
}
onContextMenu: {
openContextMenu(plasmoid.nativeInterface.popupPosition(taskIcon, mouse.x, mouse.y))
}
onClicked: {
var pos = plasmoid.nativeInterface.popupPosition(taskIcon, mouse.x, mouse.y);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment