#include <shortcuts_settings.h>
◆ ShortcutsSettings()
| ShortcutsSettings::ShortcutsSettings |
( |
const QString & | settingsFilePath, |
|
|
QObject * | parent = nullptr ) |
|
explicit |
◆ clearAllShortcuts()
| void ShortcutsSettings::clearAllShortcuts |
( |
| ) |
|
◆ findOverlaps()
| QStringList ShortcutsSettings::findOverlaps |
( |
const QString & | name, |
|
|
const QString & | sequences ) const |
|
nodiscard |
◆ getAllShortcutKeys()
| QList< QString > ShortcutsSettings::getAllShortcutKeys |
( |
| ) |
const |
|
inlinenodiscard |
◆ getDefaultShortcut()
| ShortcutKey ShortcutsSettings::getDefaultShortcut |
( |
const QString & | name | ) |
const |
|
nodiscard |
◆ getDefaultShortcutString()
| QString ShortcutsSettings::getDefaultShortcutString |
( |
const QString & | name | ) |
const |
|
nodiscard |
◆ getShortcut()
| ShortcutKey ShortcutsSettings::getShortcut |
( |
const QString & | name | ) |
const |
|
nodiscard |
◆ getShortcutFriendlyName()
| QString ShortcutsSettings::getShortcutFriendlyName |
( |
const QString & | shortcutName | ) |
const |
|
nodiscard |
◆ getShortcutString()
| QString ShortcutsSettings::getShortcutString |
( |
const QString & | name | ) |
const |
|
nodiscard |
◆ getSingleShortcut()
| QKeySequence ShortcutsSettings::getSingleShortcut |
( |
const QString & | name | ) |
const |
|
nodiscard |
Gets the first shortcut for the given action.
NOTE: In most cases you should be using ShortcutsSettings::getShortcut instead, as that will return all shortcuts if there are multiple shortcuts. The only reason to use this method is if an object does not accept multiple shortcuts, such as with QButtons.
◆ isKeyAllowed()
| bool ShortcutsSettings::isKeyAllowed |
( |
const QString & | name, |
|
|
const QString & | sequences ) const |
|
nodiscard |
◆ isValid()
| bool ShortcutsSettings::isValid |
( |
const QString & | name, |
|
|
const QString & | sequences ) const |
|
nodiscard |
Checks that the shortcut doesn't overlap with an existing shortcut
- Parameters
-
| name | The name of the shortcut |
| sequences | The shortcut key sequence |
- Returns
- Whether the shortcut is valid.
◆ migrateShortcuts()
| void ShortcutsSettings::migrateShortcuts |
( |
| ) |
|
PR 5079 changes Textbox/unfocusTextBox to Player/unfocusTextBox and tab_game/aFocusChat to Player/aFocusChat. A migration is necessary to let players keep their already configured shortcuts.
◆ parseSequenceString()
| QList< QKeySequence > ShortcutsSettings::parseSequenceString |
( |
const QString & | stringSequence | ) |
const |
|
nodiscardprivate |
◆ resetAllShortcuts()
| void ShortcutsSettings::resetAllShortcuts |
( |
| ) |
|
◆ setShortcuts() [1/3]
| void ShortcutsSettings::setShortcuts |
( |
const QString & | name, |
|
|
const QKeySequence & | Sequence ) |
◆ setShortcuts() [2/3]
| void ShortcutsSettings::setShortcuts |
( |
const QString & | name, |
|
|
const QList< QKeySequence > & | Sequence ) |
◆ setShortcuts() [3/3]
| void ShortcutsSettings::setShortcuts |
( |
const QString & | name, |
|
|
const QString & | sequences ) |
◆ shortCutChanged
| void ShortcutsSettings::shortCutChanged |
( |
| ) |
|
|
signal |
◆ stringifySequence()
| QString ShortcutsSettings::stringifySequence |
( |
const QList< QKeySequence > & | Sequence | ) |
const |
|
nodiscardprivate |
◆ custom
| const QString ShortcutsSettings::custom = "Custom" |
|
private |
◆ defaultShortCuts
| const QHash<QString, ShortcutKey> ShortcutsSettings::defaultShortCuts |
|
private |
◆ sep
| const QChar ShortcutsSettings::sep = ';' |
|
private |
◆ settingsFilePath
| QString ShortcutsSettings::settingsFilePath |
|
private |
◆ shortCuts
| QHash<QString, ShortcutKey> ShortcutsSettings::shortCuts |
|
private |
The documentation for this class was generated from the following files: