DolphinQt: Move graphics config to main Settings window.

This commit is contained in:
Jordan Woyak 2025-05-13 14:45:06 -05:00
parent 2047eaf1d8
commit 89b8edea03
17 changed files with 77 additions and 161 deletions

View file

@ -7,11 +7,14 @@
#include <QHBoxLayout>
#include <QListWidget>
#include <QStackedWidget>
#include <QTabWidget>
#include <QVBoxLayout>
#include "Common/EnumUtils.h"
#include "DolphinQt/Config/ControllersPane.h"
#include "DolphinQt/Config/Graphics/GraphicsPane.h"
#include "DolphinQt/MainWindow.h"
#include "DolphinQt/QtUtils/QtUtils.h"
#include "DolphinQt/QtUtils/WrapInScrollArea.h"
#include "DolphinQt/Settings/AdvancedPane.h"
@ -130,12 +133,13 @@ void StackedSettingsWindow::ActivatePane(int index)
m_navigation_list->setCurrentRow(index);
}
SettingsWindow::SettingsWindow(QWidget* parent) : StackedSettingsWindow{parent}
SettingsWindow::SettingsWindow(MainWindow* parent) : StackedSettingsWindow{parent}
{
setWindowTitle(tr("Settings"));
// If you change the order, don't forget to update the SettingsWindowPaneIndex enum.
AddWrappedPane(new GeneralPane, tr("General"));
AddPane(new GraphicsPane{parent, nullptr}, tr("Graphics"));
AddWrappedPane(new ControllersPane, tr("Controllers"));
AddWrappedPane(new InterfacePane, tr("Interface"));
AddWrappedPane(new AudioPane, tr("Audio"));