From a9222bf9695f600c736fbd9f28e3aa290955527d Mon Sep 17 00:00:00 2001 From: Techjar Date: Mon, 25 Jun 2018 16:53:40 -0400 Subject: [PATCH] Qt/GameList: Adjust image column widths for equal padding --- Source/Core/DolphinQt2/GameList/GameList.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinQt2/GameList/GameList.cpp b/Source/Core/DolphinQt2/GameList/GameList.cpp index c63e61c510..e0235ea66e 100644 --- a/Source/Core/DolphinQt2/GameList/GameList.cpp +++ b/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);