summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2026-10-30 14:53:51 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2026-10-30 14:53:51 -0500
commit9c2e4afedbdfa822fde192cafc6c3cdb05b4ce95 (patch)
treecc25f6b651da50ab3baa72edb93f1853de3d930d
parent3eb30c7620b4475b2e0404228ba0d2b238a132f1 (diff)
DolphinQt: Make individual tabs of PostProcessingConfigWindow scrollable for shaders with too many settings to fit on the screen.
-rw-r--r--Source/Core/DolphinQt/Config/Graphics/PostProcessingConfigWindow.cpp8
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);