A singleton class for retrieving shortcuts.
More...
#include <ShortcutHandler.h>
|
void | sig_shortcut_changed (ShortcutIdentifier identifier) |
|
|
Shortcut | shortcut (ShortcutIdentifier identifier) const |
| get a shortcut by its unique identifier More...
|
|
void | set_shortcut (ShortcutIdentifier identifier, const QStringList &shortcut) |
| set the shortcut by its unique identifier More...
|
|
QList< ShortcutIdentifier > | shortcuts_ids () const |
| get all shortcuts More...
|
|
QString | identifier (ShortcutIdentifier id) const |
|
QString | shortcut_text (ShortcutIdentifier id) const |
|
A singleton class for retrieving shortcuts.
◆ set_shortcut()
void ShortcutHandler::set_shortcut |
( |
ShortcutIdentifier |
identifier, |
|
|
const QStringList & |
shortcut |
|
) |
| |
set the shortcut by its unique identifier
- Parameters
-
identifier | the identifier which is used in database |
shortcut | a shortcut instance |
◆ shortcut()
Shortcut ShortcutHandler::shortcut |
( |
ShortcutIdentifier |
identifier | ) |
const |
get a shortcut by its unique identifier
- Parameters
-
identifier | the identifier which is used in database |
- Returns
- a shortcut instance
◆ shortcuts_ids()
QList<ShortcutIdentifier> ShortcutHandler::shortcuts_ids |
( |
| ) |
const |
get all shortcuts
- Returns