Permalink
Browse files

Qt/GameList: Fix some columns being too wide

  • Loading branch information...
spycrab committed Jun 24, 2018
1 parent b3fa5a4 commit 7e881288a29cfd4e89feeb9074f2cb62133ef3f1
Showing with 4 additions and 2 deletions.
  1. +4 −2 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);

0 comments on commit 7e88128

Please sign in to comment.