[Menu] Fix triggered sign
ClosedPublic

Authored by broulik on Apr 2 2019, 10:13 AM.

Details

Summary

It casted the QAction to a MenuItem which fails because it isn't such.
Instead, manually find the item with the corresponding action.

Test Plan
PlasmaComponents.ContextMenu {
    onTriggered: console.log(item)
}

works now

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.
broulik created this revision.Apr 2 2019, 10:13 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptApr 2 2019, 10:13 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
broulik requested review of this revision.Apr 2 2019, 10:13 AM
davidedmundson accepted this revision.Apr 2 2019, 10:22 AM
This revision is now accepted and ready to land.Apr 2 2019, 10:22 AM
This revision was automatically updated to reflect the committed changes.