Qt: Make audio channel/video layer options shortcut mappable

This commit is contained in:
Jeffrey Pfau 2016-07-30 02:07:52 -07:00
parent 42f5934b25
commit 61bfd9d87d
2 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,7 @@ Misc:
- 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:

View File

@ -1218,6 +1218,7 @@ void Window::setupMenu(QMenuBar* menubar) {
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 @@ void Window::setupMenu(QMenuBar* menubar) {
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);