Move QAction shortcut config API from KActionCollection to KGuiAddons
Open, Needs TriagePublic

Description

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

kossebau created this task.Jan 28 2023, 5:32 PM
kossebau renamed this task from Move shortcut handlimg API from KActionCollection to KGuiAddons to Move QAction shortcut config API from KActionCollection to KGuiAddons.Jan 28 2023, 5:35 PM