KUndoActions: use actionCollection to set the shortcut

Authored by ltoscano on Aug 7 2017, 8:24 PM.

Description

KUndoActions: use actionCollection to set the shortcut

Summary:
Resolve the following warning printed out when the undo/redo actions
are added through KUndoActions:

KXMLGUIFactoryPrivate::saveDefaultActionProperties: Shortcut for
action "edit_undo" "Undo" set with QAction::setShortcut()!
Use KActionCollection::setDefaultShortcut(s) instead.

Test Plan: The undo/redo actions still work and the warning is gone.

Reviewers: aacid

Reviewed By: aacid

Subscribers: Frameworks

Tags: Frameworks

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

Details

Committed
ltoscanoAug 7 2017, 9:32 PM
Reviewer
aacid
Differential Revision
D7195: KUndoActions: use actionCollection to set the shortcut
Parents
R263:da06719c305b: autotest: output filename on error
Branches
Unknown
Tags
Unknown