diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2026-10-30 21:21:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-30 21:21:21 -0500 |
| commit | dd5a544ddeb7ffeccfff9e45e6392ebb7f12e9a5 (patch) | |
| tree | 8b472f9f23a854ca2fb15a447dc31926c51af3c8 /Source/Core | |
| parent | 2c6a598fae31be8c123181e74e3f2f08d601e0d3 (diff) | |
| parent | 9c2e4afedbdfa822fde192cafc6c3cdb05b4ce95 (diff) | |
Merge pull request #14964 from jordan-woyak/scrollable-ppconfig-window
DolphinQt: Make individual tabs of PostProcessingConfigWindow scrollable.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt/Config/Graphics/PostProcessingConfigWindow.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/Config/Graphics/PostProcessingConfigWindow.cpp b/Source/Core/DolphinQt/Config/Graphics/PostProcessingConfigWindow.cpp index 7070b60887..773fe36428 100644 --- a/Source/Core/DolphinQt/Config/Graphics/PostProcessingConfigWindow.cpp +++ b/Source/Core/DolphinQt/Config/Graphics/PostProcessingConfigWindow.cpp @@ -19,6 +19,8 @@ #include <QWidget> #include "DolphinQt/Config/Graphics/EnhancementsWidget.h" +#include "DolphinQt/QtUtils/QtUtils.h" +#include "DolphinQt/QtUtils/WrapInScrollArea.h" #include "VideoCommon/PostProcessing.h" #include "VideoCommon/Present.h" @@ -46,7 +48,7 @@ PostProcessingConfigWindow::PostProcessingConfigWindow(EnhancementsWidget* paren Create(); ConnectWidgets(); - adjustSize(); + QtUtils::AdjustSizeWithinScreen(this); } PostProcessingConfigWindow::~PostProcessingConfigWindow() @@ -98,7 +100,7 @@ void PostProcessingConfigWindow::Create() if (it->HasSubGroups()) { auto* const tab = CreateDependentTab(it); - m_tabs->addTab(tab, QString::fromStdString(it->GetGUIName())); + m_tabs->addTab(GetWrappedWidget(tab), QString::fromStdString(it->GetGUIName())); if (it->GetConfigurationOption()->m_type == OptionType::Bool) { @@ -117,7 +119,7 @@ void PostProcessingConfigWindow::Create() if (add_general_page) { - m_tabs->insertTab(0, general, tr("General")); + m_tabs->insertTab(0, GetWrappedWidget(general), tr("General")); } m_buttons = new QDialogButtonBox(QDialogButtonBox::Ok); |
