16 #include "../../backend/config/btconfig.h"
17 #include "../../util/btassert.h"
58 for (
auto it = shortcuts.begin(); it != shortcuts.end(); ++it)
59 if (
auto const actionIt =
m_actions.find(it.key());
61 (*actionIt)->setShortcuts(it.value());
67 shortcuts.insert(it.key(), it.value()->shortcuts());
BtConfig & btConfig()
This is a shortchand for BtConfig::getInstance().
void readShortcuts(QString const &group)
Read shortcuts from config.
void writeShortcuts(QString const &group) const
Write shortcuts to config.
QMap< QString, QAction * > m_actions
void addAction(QString const &name, QAction *const action)
void removeAction(QString const &name)
QAction & action(QString const &name) const
static QKeySequence getDefaultShortcut(QAction &action)
void setShortcuts(QString const &shortcutGroup, ShortcutsMap const &shortcuts)
Sets the shortcuts for the given group.
ShortcutsMap getShortcuts(QString const &shortcutGroup)
Gets the shortcuts for the given group.
QStringList r(content.left(bodyIndex))
char const defaultShortcutPropertyName[]