![]() |
Sayonara Player
|
#include <ShortcutHandler.h>
A singleton class for retrieving shortcuts.
Friends | |
| class | Shortcut |
Signals | |
| void | sig_shortcut_changed (ShortcutIdentifier identifier) |
Public Member Functions | |
| 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 |
Protected Attributes | |
| Settings * | _settings =nullptr |
| void ShortcutHandler::set_shortcut | ( | ShortcutIdentifier | identifier, |
| const QStringList & | shortcut | ||
| ) |
set the shortcut by its unique identifier
| identifier | the identifier which is used in database |
| shortcut | a shortcut instance |
| Shortcut ShortcutHandler::shortcut | ( | ShortcutIdentifier | identifier | ) | const |
get a shortcut by its unique identifier
| identifier | the identifier which is used in database |
| QList<ShortcutIdentifier> ShortcutHandler::shortcuts_ids | ( | ) | const |
get all shortcuts
1.8.14