D20199: [Menu] Fix triggered sign

Kai Uwe Broulik noreply at phabricator.kde.org
Tue Apr 2 11:13:57 BST 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190402/0978a029/attachment.html>


More information about the Kde-frameworks-devel mailing list