Qt: Interface Pane

Adds the interface pane to Qt Settings. Very basic, just some UI
customization options.
This commit is contained in:
Corwin McKnight
2017-05-04 00:47:59 -07:00
parent ef4a1f0ec7
commit 8112c736fe
6 changed files with 202 additions and 3 deletions

View File

@ -2,8 +2,9 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
#include "DolphinQt2/Settings.h"
#include "DolphinQt2/Config/SettingsWindow.h"
#include "DolphinQt2/Settings.h"
#include "DolphinQt2/Settings/InterfacePane.h"
SettingsWindow::SettingsWindow(QWidget* parent) : QDialog(parent)
{
@ -47,6 +48,8 @@ void SettingsWindow::SetupSettingsWidget()
{
m_settings_outer = new QStackedWidget;
m_settings_outer->setCurrentIndex(0);
m_settings_outer->addWidget(new InterfacePane);
}
void SettingsWindow::MakeUnfinishedWarning()
@ -80,6 +83,8 @@ void SettingsWindow::MakeCategoryList()
m_categories->setMovement(QListView::Static);
m_categories->setSpacing(0);
AddCategoryToList(tr("Interface"), dir.append(QStringLiteral("config.png")));
connect(m_categories, &QListWidget::currentItemChanged, this, &SettingsWindow::changePage);
}