aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNadia Holmquist Pedersen <nadia@nhp.sh>2021-04-19 09:18:50 +0200
committerNadia Holmquist Pedersen <nadia@nhp.sh>2021-04-19 09:18:50 +0200
commit06e2193c04083bc6395bb420c56d9e7f2c3b9863 (patch)
tree91f2771eabf140ce318fbb6d123de6720b161579 /src
parentd5dbef2c22f755ad82ec59e04948111797bc270a (diff)
Fix up menu roles a bit
Diffstat (limited to 'src')
-rw-r--r--src/frontend/qt_sdl/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp
index 8462376..16399d3 100644
--- a/src/frontend/qt_sdl/main.cpp
+++ b/src/frontend/qt_sdl/main.cpp
@@ -1134,9 +1134,11 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent)
actOpenROM = menu->addAction("Open ROM...");
connect(actOpenROM, &QAction::triggered, this, &MainWindow::onOpenFile);
+ actOpenROM->setShortcut(QKeySequence(QKeySequence::StandardKey::Open));
actOpenROMArchive = menu->addAction("Open ROM inside Archive...");
connect(actOpenROMArchive, &QAction::triggered, this, &MainWindow::onOpenFileArchive);
+ actOpenROMArchive->setShortcut(QKeySequence(Qt::Key_O | Qt::CTRL | Qt::SHIFT));
recentMenu = menu->addMenu("Open Recent");
for (int i = 0; i < 10; ++i)
@@ -1219,12 +1221,14 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent)
actSetupCheats = menu->addAction("Setup cheat codes");
connect(actSetupCheats, &QAction::triggered, this, &MainWindow::onSetupCheats);
+ actSetupCheats->setMenuRole(QAction::NoRole);
}
{
QMenu* menu = menubar->addMenu("Config");
actEmuSettings = menu->addAction("Emu settings");
connect(actEmuSettings, &QAction::triggered, this, &MainWindow::onOpenEmuSettings);
+ actEmuSettings->setMenuRole(QAction::PreferencesRole);
actInputConfig = menu->addAction("Input and hotkeys");
connect(actInputConfig, &QAction::triggered, this, &MainWindow::onOpenInputConfig);