mirror of https://github.com/mgba-emu/mgba.git
Qt: Make the default fullscreen binding for Windows be Alt-Enter
This commit is contained in:
parent
b54f5a997a
commit
e84a01f219
1
CHANGES
1
CHANGES
|
@ -74,6 +74,7 @@ Misc:
|
|||
- All: Threads are now named
|
||||
- Qt: Rename "Fullscreen" to "Toggle fullscreen"
|
||||
- Qt: Don't save window size when entering fullscreen
|
||||
- Qt: Make the default fullscreen binding for Windows be Alt-Enter
|
||||
|
||||
0.2.1: (2015-05-13)
|
||||
Bugfixes:
|
||||
|
|
|
@ -826,7 +826,13 @@ void Window::setupMenu(QMenuBar* menubar) {
|
|||
});
|
||||
addControlledAction(frameMenu, setSize, QString("frame%1x").arg(QString::number(i)));
|
||||
}
|
||||
addControlledAction(frameMenu, frameMenu->addAction(tr("Toggle fullscreen"), this, SLOT(toggleFullScreen()), QKeySequence("Ctrl+F")), "fullscreen");
|
||||
QKeySequence fullscreenKeys;
|
||||
#ifdef Q_OS_WIN
|
||||
fullscreenKeys = QKeySequence("Alt+Enter");
|
||||
#else
|
||||
fullscreenKeys = QKeySequence("Ctrl+F");
|
||||
#endif
|
||||
addControlledAction(frameMenu, frameMenu->addAction(tr("Toggle fullscreen"), this, SLOT(toggleFullScreen()), fullscreenKeys), "fullscreen");
|
||||
|
||||
ConfigOption* lockAspectRatio = m_config->addOption("lockAspectRatio");
|
||||
lockAspectRatio->addBoolean(tr("Lock aspect ratio"), avMenu);
|
||||
|
|
Loading…
Reference in New Issue