all repos — mgba @ 61bfd9d87de131d4d04532c1afe61bd22a8a1233

mGBA Game Boy Advance Emulator

Qt: Make audio channel/video layer options shortcut mappable
Jeffrey Pfau jeffrey@endrift.com
Sat, 30 Jul 2016 02:07:52 -0700
commit

61bfd9d87de131d4d04532c1afe61bd22a8a1233

parent

42f5934b25d5352c8dc185e8d1f133a9ade5ba7a

2 files changed, 3 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -28,6 +28,7 @@ - 3DS: Port to using citro3D

- 3DS: Use system font for menus - PSP2: Use system font for menus - All: Faster memory read/write + - Qt: Make audio channel/video layer options shortcut mappable 0.4.1: (2016-07-11) Bugfixes:
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -1218,6 +1218,7 @@ #endif

avMenu->addSeparator(); QMenu* videoLayers = avMenu->addMenu(tr("Video layers")); + m_shortcutController->addMenu(videoLayers, avMenu); for (int i = 0; i < 4; ++i) { QAction* enableBg = new QAction(tr("Background %0").arg(i), videoLayers);

@@ -1234,6 +1235,7 @@ connect(enableObj, &QAction::triggered, [this](bool enable) { m_controller->setVideoLayerEnabled(4, enable); });

addControlledAction(videoLayers, enableObj, "enableOBJ"); QMenu* audioChannels = avMenu->addMenu(tr("Audio channels")); + m_shortcutController->addMenu(audioChannels, avMenu); for (int i = 0; i < 4; ++i) { QAction* enableCh = new QAction(tr("Channel %0").arg(i + 1), audioChannels);