diff options
| author | Leo Lam <leolino.lam@gmail.com> | 2017-05-13 00:37:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-13 00:37:31 +0200 |
| commit | a44fa16601541d41823d8ce200aa36fdcf3e7322 (patch) | |
| tree | 19ba7772c7c40b4012170cb0a64d559d3bc94eff /Source/Core/DolphinQt2/Config/SettingsWindow.cpp | |
| parent | f4e115b32226bf1e4b1410c63ca962a55cac1ac3 (diff) | |
| parent | e8a214ad14cc73f51e6e523b3b113eb537c269b7 (diff) | |
Merge pull request #5370 from Ryanel/qt-settings-general
Qt: Add General Pane to Settings
Diffstat (limited to 'Source/Core/DolphinQt2/Config/SettingsWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/Config/SettingsWindow.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Source/Core/DolphinQt2/Config/SettingsWindow.cpp b/Source/Core/DolphinQt2/Config/SettingsWindow.cpp index 5f02ce1eee..63d29e4255 100644 --- a/Source/Core/DolphinQt2/Config/SettingsWindow.cpp +++ b/Source/Core/DolphinQt2/Config/SettingsWindow.cpp @@ -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); } @@ -64,8 +68,9 @@ void SettingsWindow::MakeUnfinishedWarning() void SettingsWindow::AddCategoryToList(const QString& title, const QString& icon) { + QString dir = Settings().GetThemeDir(); QListWidgetItem* button = new QListWidgetItem(); - button->setIcon(QIcon(icon)); + button->setIcon(QIcon(dir.append(icon))); button->setText(title); button->setTextAlignment(Qt::AlignVCenter); button->setSizeHint(QSize(28, 28)); @@ -75,16 +80,14 @@ void SettingsWindow::AddCategoryToList(const QString& title, const QString& icon void SettingsWindow::MakeCategoryList() { - QString dir = Settings().GetThemeDir(); - m_categories = new QListWidget; m_categories->setMaximumWidth(175); m_categories->setIconSize(QSize(32, 32)); m_categories->setMovement(QListView::Static); m_categories->setSpacing(0); - AddCategoryToList(tr("Interface"), dir.append(QStringLiteral("config.png"))); - + AddCategoryToList(tr("General"), QStringLiteral("config.png")); + AddCategoryToList(tr("Interface"), QStringLiteral("browse.png")); connect(m_categories, &QListWidget::currentItemChanged, this, &SettingsWindow::changePage); } |
