diff options
author | Lioncash <mathew1800@gmail.com> | 2018-09-12 07:09:25 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-09-12 07:20:04 +0200 |
commit | a9b953e6d41e7fd0c5d4c9de7c353d7a0204a784 (patch) | |
tree | 7b0e2c7fc842b67c2be0f6b1b0aafd465c34c439 | |
parent | yuzu/configure_gamelist: Move combo box initializtion to their own functions (diff) | |
download | yuzu-a9b953e6d41e7fd0c5d4c9de7c353d7a0204a784.tar yuzu-a9b953e6d41e7fd0c5d4c9de7c353d7a0204a784.tar.gz yuzu-a9b953e6d41e7fd0c5d4c9de7c353d7a0204a784.tar.bz2 yuzu-a9b953e6d41e7fd0c5d4c9de7c353d7a0204a784.tar.lz yuzu-a9b953e6d41e7fd0c5d4c9de7c353d7a0204a784.tar.xz yuzu-a9b953e6d41e7fd0c5d4c9de7c353d7a0204a784.tar.zst yuzu-a9b953e6d41e7fd0c5d4c9de7c353d7a0204a784.zip |
-rw-r--r-- | src/yuzu/configuration/configure_gamelist.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/yuzu/configuration/configure_gamelist.cpp b/src/yuzu/configuration/configure_gamelist.cpp index 1238356a8..20090ed29 100644 --- a/src/yuzu/configuration/configure_gamelist.cpp +++ b/src/yuzu/configuration/configure_gamelist.cpp @@ -2,11 +2,14 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. -#include "core/core.h" +#include <array> +#include <utility> + +#include "common/common_types.h" #include "core/settings.h" #include "ui_configure_gamelist.h" -#include "ui_settings.h" #include "yuzu/configuration/configure_gamelist.h" +#include "yuzu/ui_settings.h" ConfigureGameList::ConfigureGameList(QWidget* parent) : QWidget(parent), ui(new Ui::ConfigureGameList) { @@ -39,11 +42,11 @@ void ConfigureGameList::setConfiguration() { } void ConfigureGameList::InitializeIconSizeComboBox() { - static const std::vector<std::pair<u32, std::string>> default_icon_sizes{ + static const std::array<std::pair<u32, std::string>, 5> default_icon_sizes{{ std::make_pair(0, "None"), std::make_pair(32, "Small"), std::make_pair(64, "Standard"), std::make_pair(128, "Large"), std::make_pair(256, "Full Size"), - }; + }}; for (const auto& size : default_icon_sizes) { ui->icon_size_combobox->addItem(QString::fromStdString(size.second + " (" + @@ -54,12 +57,12 @@ void ConfigureGameList::InitializeIconSizeComboBox() { } void ConfigureGameList::InitializeRowComboBoxes() { - static const std::vector<std::string> row_text_names{ + static const std::array<std::string, 4> row_text_names{{ "Filename", "Filetype", "Title ID", "Title Name", - }; + }}; for (size_t i = 0; i < row_text_names.size(); ++i) { ui->row_1_text_combobox->addItem(QString::fromStdString(row_text_names[i]), |