summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/MainWindow.cpp
diff options
context:
space:
mode:
authorLeo Lam <leolino.lam@gmail.com>2017-07-23 14:46:48 +0800
committerGitHub <noreply@github.com>2017-07-23 14:46:48 +0800
commit3cbf56a9adb8247eec6787737cfd1388740d2b61 (patch)
treeec1eb8ab7b14f3462063cbb1c618f737cd7bd3f7 /Source/Core/DolphinQt2/MainWindow.cpp
parent55fb6efea320397f58e1dfdef75109646b6bc63a (diff)
parente1554c04a128477b082cc633a5e2e1d5aa5c2fa3 (diff)
Merge pull request #5797 from ligfx/qtoptionsmenu
Qt: implement remainder of 'Options' menu
Diffstat (limited to 'Source/Core/DolphinQt2/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt2/MainWindow.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt2/MainWindow.cpp b/Source/Core/DolphinQt2/MainWindow.cpp
index 4f1350ab22..0ed3447a48 100644
--- a/Source/Core/DolphinQt2/MainWindow.cpp
+++ b/Source/Core/DolphinQt2/MainWindow.cpp
@@ -184,6 +184,10 @@ void MainWindow::ConnectMenuBar()
connect(m_menu_bar, &MenuBar::SetStateSlot, this, &MainWindow::SetStateSlot);
// Options
+ connect(m_menu_bar, &MenuBar::Configure, this, &MainWindow::ShowSettingsWindow);
+ connect(m_menu_bar, &MenuBar::ConfigureGraphics, this, &MainWindow::ShowGraphicsWindow);
+ connect(m_menu_bar, &MenuBar::ConfigureAudio, this, &MainWindow::ShowAudioWindow);
+ connect(m_menu_bar, &MenuBar::ConfigureControllers, this, &MainWindow::ShowControllersWindow);
connect(m_menu_bar, &MenuBar::ConfigureHotkeys, this, &MainWindow::ShowHotkeyDialog);
// Tools
@@ -505,6 +509,12 @@ void MainWindow::ShowSettingsWindow()
m_settings_window->activateWindow();
}
+void MainWindow::ShowAudioWindow()
+{
+ m_settings_window->SelectAudioPane();
+ ShowSettingsWindow();
+}
+
void MainWindow::ShowAboutDialog()
{
AboutDialog* about = new AboutDialog(this);