summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/MenuBar.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2017-08-05 10:28:53 +0200
committerJosJuice <josjuice@gmail.com>2017-08-06 11:35:45 +0200
commitfa4723ffb42507633394eb12a5c6511a4caf0f37 (patch)
treeea3e93d0788a7c2266bc9935b360373a42861d00 /Source/Core/DolphinQt2/MenuBar.cpp
parent84ecc0ecc9cf9acf355dbfbd7b15032ffffaa9eb (diff)
DolphinQt2: Rename "Table"/"List" to "List View"/"Grid View"
Sentret_C posted this comment on Transifex recently: "What Dolphin refers to as "Table View" and "List View" are similar to "List View" and "Grid View" in Steam, and I think the Steam names describe them better." I agree with that, so here's a commit that changes the names.
Diffstat (limited to 'Source/Core/DolphinQt2/MenuBar.cpp')
-rw-r--r--Source/Core/DolphinQt2/MenuBar.cpp26
1 files changed, 12 insertions, 14 deletions
diff --git a/Source/Core/DolphinQt2/MenuBar.cpp b/Source/Core/DolphinQt2/MenuBar.cpp
index a84219fd81..8008997abf 100644
--- a/Source/Core/DolphinQt2/MenuBar.cpp
+++ b/Source/Core/DolphinQt2/MenuBar.cpp
@@ -215,7 +215,7 @@ void MenuBar::AddViewMenu()
AddGameListTypeSection(view_menu);
view_menu->addSeparator();
- AddTableColumnsMenu(view_menu);
+ AddListColumnsMenu(view_menu);
view_menu->addSeparator();
AddShowPlatformsMenu(view_menu);
AddShowRegionsMenu(view_menu);
@@ -253,27 +253,25 @@ void MenuBar::AddHelpMenu()
void MenuBar::AddGameListTypeSection(QMenu* view_menu)
{
- // i18n: When this option is enabled, the game list is displayed as a table
- QAction* table_view = view_menu->addAction(tr("Table"));
- table_view->setCheckable(true);
-
- // i18n: When this option is enabled, the game list is displayed as a list
- QAction* list_view = view_menu->addAction(tr("List"));
+ QAction* list_view = view_menu->addAction(tr("List View"));
list_view->setCheckable(true);
+ QAction* grid_view = view_menu->addAction(tr("Grid View"));
+ grid_view->setCheckable(true);
+
QActionGroup* list_group = new QActionGroup(this);
- list_group->addAction(table_view);
list_group->addAction(list_view);
+ list_group->addAction(grid_view);
- bool prefer_table = Settings::Instance().GetPreferredView();
- table_view->setChecked(prefer_table);
- list_view->setChecked(!prefer_table);
+ bool prefer_list = Settings::Instance().GetPreferredView();
+ list_view->setChecked(prefer_list);
+ grid_view->setChecked(!prefer_list);
- connect(table_view, &QAction::triggered, this, &MenuBar::ShowTable);
connect(list_view, &QAction::triggered, this, &MenuBar::ShowList);
+ connect(grid_view, &QAction::triggered, this, &MenuBar::ShowGrid);
}
-void MenuBar::AddTableColumnsMenu(QMenu* view_menu)
+void MenuBar::AddListColumnsMenu(QMenu* view_menu)
{
static const QMap<QString, bool*> columns{
{tr("Platform"), &SConfig::GetInstance().m_showSystemColumn},
@@ -287,7 +285,7 @@ void MenuBar::AddTableColumnsMenu(QMenu* view_menu)
{tr("State"), &SConfig::GetInstance().m_showStateColumn}};
QActionGroup* column_group = new QActionGroup(this);
- QMenu* cols_menu = view_menu->addMenu(tr("Table Columns"));
+ QMenu* cols_menu = view_menu->addMenu(tr("List Columns"));
column_group->setExclusive(false);
for (const auto& key : columns.keys())