Skip to content
Commit 1f8fa162 authored by Fushan Wen's avatar Fushan Wen
Browse files

applets/systemtray: press and hold to open context menu for plasmoids

For SNI icons MouseArea in AbstractItem will emit pressAndHold signal
when pressing an icon, but for Plasmoid icons the MouseArea in AbstractItem
can't intercept mouse events because MouseArea in plasmoids will eat all
events, so manually connect to "pressAndHold" signal in the MouseArea of
a plasmoid to open its context menu on long press.

In the long term TapHandler should be preferred and replace MouseArea
because it can specify accepted devices (touchscreen), since we don't
really want long press to open context menu for mouse users.


(cherry picked from commit c3e30017)
parent 7a30eca9
Pipeline #370141 failed with stage
in 11 minutes and 6 seconds
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