summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorspycrab <spycrab@users.noreply.github.com>2018-06-24 15:58:42 +0200
committerspycrab <spycrab@users.noreply.github.com>2018-06-24 15:58:42 +0200
commit7e881288a29cfd4e89feeb9074f2cb62133ef3f1 (patch)
tree1e22af2c7f68db36f7473e606afaa77ec43d7d1f /Source
parentb3fa5a4f2e8987888cae755791877da9c5f0a33d (diff)
Qt/GameList: Fix some columns being too wide
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinQt2/GameList/GameList.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt2/GameList/GameList.cpp b/Source/Core/DolphinQt2/GameList/GameList.cpp
index 8bf3098ff0..5ac8aa7859 100644
--- a/Source/Core/DolphinQt2/GameList/GameList.cpp
+++ b/Source/Core/DolphinQt2/GameList/GameList.cpp
@@ -34,6 +34,7 @@
#include "DolphinQt2/GameList/ListProxyModel.h"
#include "DolphinQt2/QtUtils/ActionHelper.h"
#include "DolphinQt2/QtUtils/DoubleClickEventFilter.h"
+#include "DolphinQt2/Resources.h"
#include "DolphinQt2/Settings.h"
#include "DolphinQt2/WiiUpdate.h"
@@ -105,12 +106,13 @@ void GameList::MakeListView()
hor_header->setSectionResizeMode(GameListModel::COL_TITLE, QHeaderView::Stretch);
hor_header->setSectionResizeMode(GameListModel::COL_DESCRIPTION, QHeaderView::Interactive);
hor_header->setSectionResizeMode(GameListModel::COL_MAKER, QHeaderView::Interactive);
- hor_header->setSectionResizeMode(GameListModel::COL_ID, QHeaderView::Fixed);
+ hor_header->setSectionResizeMode(GameListModel::COL_ID, QHeaderView::Interactive);
hor_header->setSectionResizeMode(GameListModel::COL_COUNTRY, QHeaderView::Fixed);
hor_header->setSectionResizeMode(GameListModel::COL_SIZE, QHeaderView::Fixed);
hor_header->setSectionResizeMode(GameListModel::COL_FILE_NAME, QHeaderView::Interactive);
- // It's a bit too narrow by default
+ m_list->setColumnWidth(GameListModel::COL_PLATFORM, Resources::GetPlatform(0).width());
+ m_list->setColumnWidth(GameListModel::COL_COUNTRY, Resources::GetCountry(0).width());
m_list->setColumnWidth(GameListModel::COL_SIZE, 70);
m_list->setColumnHidden(GameListModel::COL_PLATFORM, !SConfig::GetInstance().m_showSystemColumn);