Skip to content
Verified Commit c3e30017 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.
parent 7f45cd54
Pipeline #370129 passed with stage
in 13 minutes and 37 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