broulik created this revision. broulik added a reviewer: Plasma. Herald added a project: Frameworks. Herald added a subscriber: kde-frameworks-devel. broulik requested review of this revision.
REVISION 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 REPOSITORY R242 Plasma Framework (Library) REVISION DETAIL https://phabricator.kde.org/D20199 AFFECTED FILES src/declarativeimports/plasmacomponents/qmenu.cpp To: broulik, #plasma Cc: kde-frameworks-devel, michaelh, ngraham, bruns