Use MenuItem's action property directly in ActionMenuItem

Authored by ahiemstra on Oct 9 2019, 11:41 AM.

Description

Use MenuItem's action property directly in ActionMenuItem

Summary:
Now that Kirigami's Action is a QQC2 Action subclass we can use
MenuItem's action property directly, removing the need for custom
bindings.

This fixes Kirigami ActionMenus not showing keyboard shortcuts for
actions, as that binding was missing.

Test Plan:
Applications' overflow menus and action submenus still work correctly.
Menu items for actions that have keyboard shortcuts now display them.

Reviewers: Kirigami, mart

Reviewed By: Kirigami, mart

Subscribers: apol, plasma-devel

Tags: Kirigami

Differential Revision: https://phabricator.kde.org/D24501

Details

Committed
ahiemstraOct 9 2019, 1:41 PM
Reviewer
Kirigami
Differential Revision
D24501: Use MenuItem's action property directly in ActionMenuItem
Parents
R169:64c8bde7ea6c: Allow the global drawer to become a menu if desired
Branches
Unknown
Tags
Unknown