Use KActionCollection::setDefaultShortcut
ClosedPublic

Authored by heikobecker on Aug 26 2017, 3:14 PM.

Details

Summary

...instead of QAction::setShortcut, which removes some run-time warnings.

Test Plan

Build and checked that shortcuts still work

Diff Detail

Repository
R423 Palapeli
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
heikobecker created this revision.Aug 26 2017, 3:14 PM

While you're at it - can you please give all create QActions 'this' as parent? KActionCollection::addAction() does not take ownership of the QAction*

  • Give QActions a parent

Looks fine by me; I guess that if @chehrlic agrees that the issue that he raised is addressed, this can be approved.

chehrlic accepted this revision.Aug 27 2017, 6:10 AM

Yes, all fine from my side

This revision is now accepted and ready to land.Aug 27 2017, 6:10 AM
This revision was automatically updated to reflect the committed changes.