mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-16 07:22:16 -07:00
add shortcut
This commit is contained in:
parent
9959bf2b5e
commit
a35008cd78
2 changed files with 4 additions and 0 deletions
|
|
@ -1290,6 +1290,7 @@ void MainWindow::refreshShortcuts()
|
||||||
aDisconnect->setShortcuts(shortcuts.getShortcut("MainWindow/aDisconnect"));
|
aDisconnect->setShortcuts(shortcuts.getShortcut("MainWindow/aDisconnect"));
|
||||||
aSinglePlayer->setShortcuts(shortcuts.getShortcut("MainWindow/aSinglePlayer"));
|
aSinglePlayer->setShortcuts(shortcuts.getShortcut("MainWindow/aSinglePlayer"));
|
||||||
aWatchReplay->setShortcuts(shortcuts.getShortcut("MainWindow/aWatchReplay"));
|
aWatchReplay->setShortcuts(shortcuts.getShortcut("MainWindow/aWatchReplay"));
|
||||||
|
aStatusBar->setShortcuts(shortcuts.getShortcut("MainWindow/aStatusBar"));
|
||||||
aFullScreen->setShortcuts(shortcuts.getShortcut("MainWindow/aFullScreen"));
|
aFullScreen->setShortcuts(shortcuts.getShortcut("MainWindow/aFullScreen"));
|
||||||
aRegister->setShortcuts(shortcuts.getShortcut("MainWindow/aRegister"));
|
aRegister->setShortcuts(shortcuts.getShortcut("MainWindow/aRegister"));
|
||||||
aSettings->setShortcuts(shortcuts.getShortcut("MainWindow/aSettings"));
|
aSettings->setShortcuts(shortcuts.getShortcut("MainWindow/aSettings"));
|
||||||
|
|
|
||||||
|
|
@ -158,6 +158,9 @@ private:
|
||||||
ShortcutGroup::Main_Window)},
|
ShortcutGroup::Main_Window)},
|
||||||
{"MainWindow/aExit",
|
{"MainWindow/aExit",
|
||||||
ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Exit"), parseSequenceString(""), ShortcutGroup::Main_Window)},
|
ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Exit"), parseSequenceString(""), ShortcutGroup::Main_Window)},
|
||||||
|
{"MainWindow/aStatusBar", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Show Status Bar"),
|
||||||
|
parseSequenceString(""),
|
||||||
|
ShortcutGroup::Main_Window)},
|
||||||
{"MainWindow/aFullScreen", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Full screen"),
|
{"MainWindow/aFullScreen", ShortcutKey(QT_TRANSLATE_NOOP("shortcutsTab", "Full screen"),
|
||||||
parseSequenceString("Ctrl+F"),
|
parseSequenceString("Ctrl+F"),
|
||||||
ShortcutGroup::Main_Window)},
|
ShortcutGroup::Main_Window)},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue