mirror of https://github.com/mgba-emu/mgba.git
Qt: Move settings items to consistent location in Tools
This commit is contained in:
parent
caef397ad4
commit
bb78cc1bd3
|
@ -459,11 +459,6 @@ void Window::setupMenu(QMenuBar* menubar) {
|
|||
|
||||
#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
|
||||
|
||||
|
@ -526,17 +521,6 @@ void Window::setupMenu(QMenuBar* menubar) {
|
|||
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"));
|
||||
for (int i = 1; i <= 6; ++i) {
|
||||
|
@ -637,6 +621,19 @@ void Window::setupMenu(QMenuBar* menubar) {
|
|||
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");
|
||||
skipBios->connect([this](const QVariant& value) { m_controller->setSkipBIOS(value.toBool()); });
|
||||
|
||||
|
|
Loading…
Reference in New Issue