D7195: KUndoActions: use actionCollection to set the shortcut

Luigi Toscano noreply at phabricator.kde.org
Mon Aug 7 20:32:03 UTC 2017


ltoscano created this revision.
Restricted Application added a project: Frameworks.
Restricted Application added a subscriber: Frameworks.

REVISION 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.

REPOSITORY
  R263 KXmlGui

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D7195

AFFECTED FILES
  src/kundoactions.cpp

To: ltoscano
Cc: #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170807/9f06ab1b/attachment.html>


More information about the Kde-frameworks-devel mailing list