all repos — mgba @ e84a01f219b0b40cbf8c892a0d2af48ad2c6ed30

mGBA Game Boy Advance Emulator

Qt: Make the default fullscreen binding for Windows be Alt-Enter
Jeffrey Pfau jeffrey@endrift.com
Wed, 17 Jun 2015 22:08:23 -0700
commit

e84a01f219b0b40cbf8c892a0d2af48ad2c6ed30

parent

b54f5a997a493f977d77a8273ff95b266d9abe7e

2 files changed, 8 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -74,6 +74,7 @@ - SDL: Clean up initialization functions

- 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:
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -826,7 +826,13 @@ resizeFrame(VIDEO_HORIZONTAL_PIXELS * i, VIDEO_VERTICAL_PIXELS * i);

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