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

Qt/GameList: Adjust image column widths for equal padding
This commit is contained in:
spycrab 2018-06-29 11:05:39 +02:00 committed by GitHub
commit 9b00045220
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -115,9 +115,11 @@ 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);
m_list->setColumnWidth(GameListModel::COL_BANNER, 100); // Cells have 3 pixels of padding, so the width of these needs to be image width + 6. Banners are
m_list->setColumnWidth(GameListModel::COL_PLATFORM, 40); // 96 pixels wide, platform and country icons are 32 pixels wide.
m_list->setColumnWidth(GameListModel::COL_COUNTRY, 40); 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_SIZE, 85);
m_list->setColumnWidth(GameListModel::COL_ID, 70); m_list->setColumnWidth(GameListModel::COL_ID, 70);