|
| QgsShortcutsManager (QObject *parent=nullptr, const QString &settingsRoot="/shortcuts/") |
| Constructor for QgsShortcutsManager. More...
|
|
QAction * | actionByName (const QString &name) const |
| Returns an action by its name, or nullptr if nothing found. More...
|
|
QAction * | actionForSequence (const QKeySequence &sequence) const |
| Returns the action which is associated for a shortcut sequence, or nullptr if no action is associated. More...
|
|
QString | defaultKeySequence (QAction *action) const |
| Returns the default sequence for an action. More...
|
|
QString | defaultKeySequence (QShortcut *shortcut) const |
| Returns the default sequence for a shortcut. More...
|
|
QList< QAction * > | listActions () const |
| Returns a list of all actions in the manager. More...
|
|
QList< QObject * > | listAll () const |
| Returns a list of both actions and shortcuts in the manager. More...
|
|
QList< QShortcut * > | listShortcuts () const |
| Returns a list of shortcuts in the manager. More...
|
|
QString | objectDefaultKeySequence (QObject *object) const |
| Returns the default sequence for an object (either a QAction or QShortcut). More...
|
|
QObject * | objectForSequence (const QKeySequence &sequence) const |
| Returns the object (QAction or QShortcut) matching the specified key sequence,. More...
|
|
bool | registerAction (QAction *action, const QString &defaultShortcut=QString()) |
| Registers an action with the manager so the shortcut can be configured in GUI. More...
|
|
void | registerAllChildActions (QObject *object, bool recursive=false) |
| Automatically registers all QActions which are children of the passed object. More...
|
|
void | registerAllChildren (QObject *object, bool recursive=false) |
| Automatically registers all QActions and QShortcuts which are children of the passed object. More...
|
|
void | registerAllChildShortcuts (QObject *object, bool recursive=false) |
| Automatically registers all QShortcuts which are children of the passed object. More...
|
|
bool | registerShortcut (QShortcut *shortcut, const QString &defaultSequence=QString()) |
| Registers a QShortcut with the manager so the shortcut can be configured in GUI. More...
|
|
bool | setKeySequence (const QString &name, const QString &sequence) |
| Modifies an action or shortcut's key sequence. More...
|
|
bool | setKeySequence (QAction *action, const QString &sequence) |
| Modifies an action's key sequence. More...
|
|
bool | setKeySequence (QShortcut *shortcut, const QString &sequence) |
| Modifies a shortcuts's key sequence. More...
|
|
bool | setObjectKeySequence (QObject *object, const QString &sequence) |
| Modifies an object's (either a QAction or a QShortcut) key sequence. More...
|
|
QString | settingsPath () const |
| Returns the root settings path used to store shortcut customization. More...
|
|
QShortcut * | shortcutByName (const QString &name) const |
| Returns a shortcut by its name, or nullptr if nothing found. More...
|
|
QShortcut * | shortcutForSequence (const QKeySequence &sequence) const |
| Returns the shortcut which is associated for a key sequence, or nullptr if no shortcut is associated. More...
|
|
bool | unregisterAction (QAction *action) |
| Removes an action from the manager. More...
|
|
bool | unregisterShortcut (QShortcut *shortcut) |
| Removes a shortcut from the manager. More...
|
|