citra-qt: Add /default parsing for hotkeys. Also minor code cleanups.

This commit is contained in:
Adityarup Laha 2018-12-30 15:39:16 +05:30
parent 71f36efd27
commit 80ebd75285
No known key found for this signature in database
GPG key ID: 1B24048A1F78845F
12 changed files with 67 additions and 74 deletions

View file

@ -48,7 +48,7 @@ public:
QShortcut* GetHotkey(const QString& group, const QString& action, QWidget* widget);
/**
* Returns a QKeySequence object who signal can be connected to QAction->SetShortcut.
* Returns a QKeySequence object whose signal can be connected to QAction::setShortcut.
*
* @param group General group this hotkey belongs to (e.g. "Main Window", "Debugger").
* @param action Name of the action (e.g. "Start Emulation", "Load Image").
@ -57,9 +57,10 @@ public:
/**
* Returns a Qt::ShortcutContext object who can be connected to other
* QAction->SetShortcutContext.
* QAction::setShortcutContext.
*
* @param group General group this shortcutcontext belongs to (e.g. "Main Window", "Debugger").
* @param group General group this shortcut context belongs to (e.g. "Main Window",
* "Debugger").
* @param action Name of the action (e.g. "Start Emulation", "Load Image").
*/
Qt::ShortcutContext GetShortcutContext(const QString& group, const QString& action);