Permalink
Browse files

Merge pull request #7168 from Techjar/qt-image-columns

Qt/GameList: Adjust image column widths for equal padding
  • Loading branch information...
spycrab committed Jun 29, 2018
2 parents 2e6d2a0 + a9222bf commit 9b0004522066199b4bb93869232f8d90779aa740
Showing with 5 additions and 3 deletions.
  1. +5 −3 Source/Core/DolphinQt2/GameList/GameList.cpp
@@ -115,9 +115,11 @@ void GameList::MakeListView()
hor_header->setSectionResizeMode(GameListModel::COL_SIZE, QHeaderView::Fixed);
hor_header->setSectionResizeMode(GameListModel::COL_FILE_NAME, QHeaderView::Interactive);
m_list->setColumnWidth(GameListModel::COL_BANNER, 100);
m_list->setColumnWidth(GameListModel::COL_PLATFORM, 40);
m_list->setColumnWidth(GameListModel::COL_COUNTRY, 40);
// Cells have 3 pixels of padding, so the width of these needs to be image width + 6. Banners are
// 96 pixels wide, platform and country icons are 32 pixels wide.
m_list->setColumnWidth(GameListModel::COL_BANNER, 102);
m_list->setColumnWidth(GameListModel::COL_PLATFORM, 38);
m_list->setColumnWidth(GameListModel::COL_COUNTRY, 38);
m_list->setColumnWidth(GameListModel::COL_SIZE, 85);
m_list->setColumnWidth(GameListModel::COL_ID, 70);

0 comments on commit 9b00045

Please sign in to comment.