diff options
| author | Andrew Strauss <astrauss11@gmail.com> | 2026-02-09 21:47:30 -0500 |
|---|---|---|
| committer | Andrew Strauss <astrauss11@gmail.com> | 2026-02-20 02:05:35 -0500 |
| commit | 61c36b0cc85c4e4ff85e9cb099c7fe16eb6db6ca (patch) | |
| tree | 2554c88287cfdd503debaabfcefefb0fb2916633 /Source/Core/DolphinQt/Config/CommonControllersWidget.cpp | |
| parent | ebc8c9d857f8cbc99d555c4c2b16e3e8098a718a (diff) | |
Add new window to configure SDL hints and store them in the main ini file
Signed-off-by: Andrew Strauss <astrauss11@gmail.com>
Diffstat (limited to 'Source/Core/DolphinQt/Config/CommonControllersWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/CommonControllersWidget.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Config/CommonControllersWidget.cpp b/Source/Core/DolphinQt/Config/CommonControllersWidget.cpp index 7a5e1256af..6d905eeb8c 100644 --- a/Source/Core/DolphinQt/Config/CommonControllersWidget.cpp +++ b/Source/Core/DolphinQt/Config/CommonControllersWidget.cpp @@ -11,6 +11,7 @@ #include "Core/Config/MainSettings.h" #include "DolphinQt/Config/ControllerInterface/ControllerInterfaceWindow.h" +#include "DolphinQt/Config/SDLHints/SDLHintsWindow.h" #include "DolphinQt/QtUtils/NonDefaultQPushButton.h" #include "DolphinQt/QtUtils/SignalBlocking.h" #include "DolphinQt/Settings.h" @@ -33,9 +34,11 @@ void CommonControllersWidget::CreateLayout() m_common_bg_input = new QCheckBox(tr("Background Input")); m_common_configure_controller_interface = new NonDefaultQPushButton(tr("Alternate Input Sources")); + m_common_configure_sdl_hints = new NonDefaultQPushButton(tr("SDL Controller Settings")); m_common_layout->addWidget(m_common_bg_input); m_common_layout->addWidget(m_common_configure_controller_interface); + m_common_layout->addWidget(m_common_configure_sdl_hints); m_common_box->setLayout(m_common_layout); @@ -51,6 +54,8 @@ void CommonControllersWidget::ConnectWidgets() connect(m_common_bg_input, &QCheckBox::toggled, this, &CommonControllersWidget::SaveSettings); connect(m_common_configure_controller_interface, &QPushButton::clicked, this, &CommonControllersWidget::OnControllerInterfaceConfigure); + connect(m_common_configure_sdl_hints, &QPushButton::clicked, this, + &CommonControllersWidget::OnSDLHintConfigure); } void CommonControllersWidget::OnControllerInterfaceConfigure() @@ -61,6 +66,14 @@ void CommonControllersWidget::OnControllerInterfaceConfigure() window->show(); } +void CommonControllersWidget::OnSDLHintConfigure() +{ + SDLHintsWindow* window = new SDLHintsWindow(this); + window->setAttribute(Qt::WA_DeleteOnClose, true); + window->setWindowModality(Qt::WindowModality::WindowModal); + window->show(); +} + void CommonControllersWidget::LoadSettings() { SignalBlocking(m_common_bg_input)->setChecked(Config::Get(Config::MAIN_INPUT_BACKGROUND_INPUT)); |
