diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-05-13 14:45:06 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2025-06-14 16:26:09 -0500 |
| commit | 89b8edea03bb77629de663c82b6dc070e3ca0442 (patch) | |
| tree | 9984855d30102f3eabef452955f447b757d00229 /Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp | |
| parent | 2047eaf1d86839b53bb92cf79cfae8be2a568ed6 (diff) | |
DolphinQt: Move graphics config to main Settings window.
Diffstat (limited to 'Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp b/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp index 5a08767572..0ffc29cda9 100644 --- a/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp +++ b/Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp @@ -24,7 +24,7 @@ #include "DolphinQt/Config/ConfigControls/ConfigInteger.h" #include "DolphinQt/Config/ConfigControls/ConfigRadio.h" #include "DolphinQt/Config/GameConfigWidget.h" -#include "DolphinQt/Config/Graphics/GraphicsWindow.h" +#include "DolphinQt/Config/Graphics/GraphicsPane.h" #include "DolphinQt/Config/ToolTipControls/ToolTipComboBox.h" #include "DolphinQt/QtUtils/ModalMessageBox.h" #include "DolphinQt/Settings.h" @@ -32,26 +32,19 @@ #include "VideoCommon/VideoBackendBase.h" #include "VideoCommon/VideoConfig.h" -GeneralWidget::GeneralWidget(GraphicsWindow* parent) +GeneralWidget::GeneralWidget(GraphicsPane* gfx_pane) : m_game_layer{gfx_pane->GetConfigLayer()} { CreateWidgets(); ConnectWidgets(); AddDescriptions(); - connect(parent, &GraphicsWindow::BackendChanged, this, &GeneralWidget::OnBackendChanged); + connect(gfx_pane, &GraphicsPane::BackendChanged, this, &GeneralWidget::OnBackendChanged); connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, [this](Core::State state) { OnEmulationStateChanged(state != Core::State::Uninitialized); }); OnEmulationStateChanged(!Core::IsUninitialized(Core::System::GetInstance())); } -GeneralWidget::GeneralWidget(GameConfigWidget* parent, Config::Layer* layer) : m_game_layer(layer) -{ - CreateWidgets(); - ConnectWidgets(); - AddDescriptions(); -} - void GeneralWidget::CreateWidgets() { auto* main_layout = new QVBoxLayout; |
