KActionCollection has a set of methods which are not exactly bound to the class concept itself, all care about shortcut configuration properties of any QAction instance:
- KActionCollection::defaultShortcut(QAction *action);
- KActionCollection::defaultShortcuts(QAction *action)
- KActionCollection::setDefaultShortcut(QAction *action, const QKeySequence &shortcut);
- KActionCollection::setDefaultShortcuts(QAction *action, const QList<QKeySequence> &shortcuts);
- KActionCollection::setShortcutsConfigurable(QAction *action, bool configurable);
- KActionCollection::isShortcutsConfigurable(QAction *action);
With Qt6 having QAction moved to QtGui, it might make sense to move these methods down from KXmlGui to its (private link interface) dependency KGuiAddons. That would allow a (theoretic so far) QtQuick variant of KShortcutEditor and friends. Best be done when such consumers are actually created.,