Qt: Add General Pane to Settings

Replace SConfig references with Settings()
This commit is contained in:
Corwin McKnight
2017-05-03 21:19:51 -07:00
parent 33980d816a
commit a2d2acf741
8 changed files with 283 additions and 3 deletions

View File

@ -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);