Add invokable public API for emitting contextualActionsAboutToShow
ClosedPublic

Authored by davidedmundson on Apr 9 2019, 9:16 PM.

Details

Summary

This signal is emitted just before showing the context menu to allow
lazy-loading expensive actions like hasAlternatives.

This emitted by our code whenever we show a context menu from an event
filter, however we want to use this code from a tooltip in D17410

Test Plan

Hovered over some applets, they correctly enabled/disabled the
alternatives button

Diff Detail

Repository
R242 Plasma Framework (Library)
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
davidedmundson created this revision.Apr 9 2019, 9:16 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptApr 9 2019, 9:16 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
davidedmundson requested review of this revision.Apr 9 2019, 9:16 PM
broulik accepted this revision.Apr 10 2019, 6:12 PM
broulik added a subscriber: broulik.

Thanks for taking care of this

This revision is now accepted and ready to land.Apr 10 2019, 6:12 PM
GB_2 added a subscriber: GB_2.Apr 10 2019, 6:18 PM

Yeah, thanks a lot!

This revision was automatically updated to reflect the committed changes.