Permalink
Browse files

Merge pull request #7179 from Techjar/qt-min-section-size

Qt/GameList: Explicitly set minimum section size
  • Loading branch information...
spycrab committed Jun 29, 2018
2 parents bd28bf6 + d94805b commit 384cbf212e6c9ae77248ea24104dfdf9c53a38f1
Showing with 3 additions and 0 deletions.
  1. +3 −0 Source/Core/DolphinQt2/GameList/GameList.cpp
@@ -115,6 +115,9 @@ void GameList::MakeListView()
hor_header->setSectionResizeMode(GameListModel::COL_SIZE, QHeaderView::Fixed);
hor_header->setSectionResizeMode(GameListModel::COL_FILE_NAME, QHeaderView::Interactive);
// There's some odd platform-specific behavior with default minimum section size
hor_header->setMinimumSectionSize(38);
// 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);

0 comments on commit 384cbf2

Please sign in to comment.