mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Qt: Add General Pane to Settings
Replace SConfig references with Settings()
This commit is contained in:
parent
33980d816a
commit
a2d2acf741
8 changed files with 283 additions and 3 deletions
|
@ -4,8 +4,10 @@
|
|||
|
||||
#include "DolphinQt2/Config/SettingsWindow.h"
|
||||
#include "DolphinQt2/Settings.h"
|
||||
#include "DolphinQt2/Settings/GeneralPane.h"
|
||||
#include "DolphinQt2/Settings/InterfacePane.h"
|
||||
|
||||
|
||||
SettingsWindow::SettingsWindow(QWidget* parent) : QDialog(parent)
|
||||
{
|
||||
// Set Window Properties
|
||||
|
@ -49,6 +51,8 @@ void SettingsWindow::SetupSettingsWidget()
|
|||
m_settings_outer = new QStackedWidget;
|
||||
m_settings_outer->setCurrentIndex(0);
|
||||
|
||||
// Panes initalised here
|
||||
m_settings_outer->addWidget(new GeneralPane);
|
||||
m_settings_outer->addWidget(new InterfacePane);
|
||||
}
|
||||
|
||||
|
@ -83,6 +87,7 @@ void SettingsWindow::MakeCategoryList()
|
|||
m_categories->setMovement(QListView::Static);
|
||||
m_categories->setSpacing(0);
|
||||
|
||||
AddCategoryToList(tr("General"), dir.append(QStringLiteral("config.png")));
|
||||
AddCategoryToList(tr("Interface"), dir.append(QStringLiteral("config.png")));
|
||||
|
||||
connect(m_categories, &QListWidget::currentItemChanged, this, &SettingsWindow::changePage);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue