Skip to content

Commit

Permalink
Qt/GameList: Explicitly set minimum section size
Browse files Browse the repository at this point in the history
  • Loading branch information
Techjar committed Jun 29, 2018
1 parent bd28bf6 commit d94805b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Core/DolphinQt2/GameList/GameList.cpp
Expand Up @@ -115,6 +115,9 @@ void GameList::MakeListView()
hor_header->setSectionResizeMode(GameListModel::COL_SIZE, QHeaderView::Fixed); hor_header->setSectionResizeMode(GameListModel::COL_SIZE, QHeaderView::Fixed);
hor_header->setSectionResizeMode(GameListModel::COL_FILE_NAME, QHeaderView::Interactive); 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 // 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. // 96 pixels wide, platform and country icons are 32 pixels wide.
m_list->setColumnWidth(GameListModel::COL_BANNER, 102); m_list->setColumnWidth(GameListModel::COL_BANNER, 102);
Expand Down

0 comments on commit d94805b

Please sign in to comment.