all repos — mgba @ bb78cc1bd3ccb7caae1e8cbb8f24954eaebfb1bd

mGBA Game Boy Advance Emulator

Qt: Move settings items to consistent location in Tools
Jeffrey Pfau jeffrey@endrift.com
Sat, 03 Jan 2015 14:59:27 -0800
commit

bb78cc1bd3ccb7caae1e8cbb8f24954eaebfb1bd

parent

caef397ad42fd07fe619039c47559db30532d7be

1 files changed, 13 insertions(+), 16 deletions(-)

jump to
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -459,11 +459,6 @@ }

#ifndef Q_OS_MAC fileMenu->addSeparator(); -#endif - fileMenu->addAction(tr("Settings"), this, SLOT(openSettingsWindow())); - -#ifndef Q_OS_MAC - fileMenu->addSeparator(); fileMenu->addAction(tr("E&xit"), this, SLOT(close()), QKeySequence::Quit); #endif

@@ -525,17 +520,6 @@ ConfigOption* audioSync = m_config->addOption("audioSync");

audioSync->addBoolean(tr("Sync to &audio"), emulationMenu); audioSync->connect([this](const QVariant& value) { m_controller->setAudioSync(value.toBool()); }); m_config->updateOption("audioSync"); - - emulationMenu->addSeparator(); - QAction* keymap = new QAction(tr("Remap keyboard..."), emulationMenu); - connect(keymap, SIGNAL(triggered()), this, SLOT(openKeymapWindow())); - emulationMenu->addAction(keymap); - -#ifdef BUILD_SDL - QAction* gamepad = new QAction(tr("Remap gamepad..."), emulationMenu); - connect(gamepad, SIGNAL(triggered()), this, SLOT(openGamepadWindow())); - emulationMenu->addAction(gamepad); -#endif QMenu* avMenu = menubar->addMenu(tr("Audio/&Video")); QMenu* frameMenu = avMenu->addMenu(tr("Frame size"));

@@ -635,6 +619,19 @@ #ifdef USE_GDB_STUB

QAction* gdbWindow = new QAction(tr("Start &GDB server..."), toolsMenu); connect(gdbWindow, SIGNAL(triggered()), this, SLOT(gdbOpen())); toolsMenu->addAction(gdbWindow); +#endif + + toolsMenu->addSeparator(); + toolsMenu->addAction(tr("Settings"), this, SLOT(openSettingsWindow())); + + QAction* keymap = new QAction(tr("Remap keyboard..."), toolsMenu); + connect(keymap, SIGNAL(triggered()), this, SLOT(openKeymapWindow())); + toolsMenu->addAction(keymap); + +#ifdef BUILD_SDL + QAction* gamepad = new QAction(tr("Remap gamepad..."), toolsMenu); + connect(gamepad, SIGNAL(triggered()), this, SLOT(openGamepadWindow())); + toolsMenu->addAction(gamepad); #endif ConfigOption* skipBios = m_config->addOption("skipBios");