Qt: Make the default fullscreen binding for Windows be Alt-Enter

This commit is contained in:
Jeffrey Pfau 2015-06-17 22:08:23 -07:00
parent b54f5a997a
commit e84a01f219
2 changed files with 8 additions and 1 deletions

View File

@ -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:

View File

@ -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);