From ff889fc749f4709d17a6bdc35f3d8da03e5f2d85 Mon Sep 17 00:00:00 2001 From: Davide Pesavento Date: Fri, 16 Jan 2026 02:23:44 -0500 Subject: [PATCH] Qt: Fix overlapping group boxes in controller global settings (#3683) --- .../controllerglobalsettingswidget.cpp | 4 +- .../controllerglobalsettingswidget.ui | 62 +++++++++---------- 2 files changed, 30 insertions(+), 36 deletions(-) diff --git a/src/duckstation-qt/controllerglobalsettingswidget.cpp b/src/duckstation-qt/controllerglobalsettingswidget.cpp index 9928957fa..355a438fb 100644 --- a/src/duckstation-qt/controllerglobalsettingswidget.cpp +++ b/src/duckstation-qt/controllerglobalsettingswidget.cpp @@ -28,10 +28,10 @@ ControllerGlobalSettingsWidget::ControllerGlobalSettingsWidget(QWidget* parent, SettingsInterface* sif = dialog->getEditingSettingsInterface(); - // editing game profile or input profile bool remove_sources = false; if (sif) { + // Editing game profile or input profile. m_ui.useProfileHotkeyBindings->setChecked(sif->GetBoolValue("ControllerPorts", "UseProfileHotkeyBindings", false)); connect(m_ui.useProfileHotkeyBindings, &QCheckBox::checkStateChanged, this, [this](int new_state) { m_dialog->setBoolValue("ControllerPorts", "UseProfileHotkeyBindings", (new_state == Qt::Checked)); @@ -46,7 +46,7 @@ ControllerGlobalSettingsWidget::ControllerGlobalSettingsWidget(QWidget* parent, } else { - // remove profile options from the UI. + // Editing base settings, remove profile options from the UI. m_ui.mainLayout->removeWidget(m_ui.profileSettings); QtUtils::SafeDeleteWidget(m_ui.profileSettings); m_ui.profileSettingsLayout = nullptr; diff --git a/src/duckstation-qt/controllerglobalsettingswidget.ui b/src/duckstation-qt/controllerglobalsettingswidget.ui index fc48ce18b..1206fe983 100644 --- a/src/duckstation-qt/controllerglobalsettingswidget.ui +++ b/src/duckstation-qt/controllerglobalsettingswidget.ui @@ -6,8 +6,8 @@ 0 0 - 977 - 743 + 900 + 658 @@ -108,6 +108,31 @@ + + + + Detected Devices + + + + + + + 200 + 0 + + + + + 200 + 16777215 + + + + + + + @@ -342,7 +367,7 @@ - + Profile Settings @@ -380,39 +405,8 @@ Qt::Orientation::Vertical - - - 0 - 0 - - - - - - Detected Devices - - - - - - - 200 - 0 - - - - - 200 - 16777215 - - - - - - -