summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorMathew Maidment <mathew1800@gmail.com>2016-02-11 21:05:56 -0500
committerMathew Maidment <mathew1800@gmail.com>2016-02-11 21:05:56 -0500
commitbbb67857d33fcb0101ae1b9e89b6e79325c13aaf (patch)
tree9f30eac544fbbfe0d718dfc78adedc5460306513 /Source/Core
parent5ef3ab6c62a82fb809737d7f687a27c4a457fa31 (diff)
parent26637ed262ed54d9259055a2f65dbc6199a15dd6 (diff)
Merge pull request #3618 from rukai/dolphinQtBannerSize
DQt2: properly space row height of table gamelist
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt2/GameList/GameList.cpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/Source/Core/DolphinQt2/GameList/GameList.cpp b/Source/Core/DolphinQt2/GameList/GameList.cpp
index 5c10100f78..861b0115a1 100644
--- a/Source/Core/DolphinQt2/GameList/GameList.cpp
+++ b/Source/Core/DolphinQt2/GameList/GameList.cpp
@@ -57,16 +57,19 @@ void GameList::MakeTableView()
m_table->setColumnHidden(GameListModel::COL_COUNTRY, false);
m_table->setColumnHidden(GameListModel::COL_RATING, false);
- QHeaderView* header = m_table->horizontalHeader();
- header->setSectionResizeMode(GameListModel::COL_PLATFORM, QHeaderView::Fixed);
- header->setSectionResizeMode(GameListModel::COL_COUNTRY, QHeaderView::Fixed);
- header->setSectionResizeMode(GameListModel::COL_ID, QHeaderView::ResizeToContents);
- header->setSectionResizeMode(GameListModel::COL_BANNER, QHeaderView::ResizeToContents);
- header->setSectionResizeMode(GameListModel::COL_TITLE, QHeaderView::Stretch);
- header->setSectionResizeMode(GameListModel::COL_MAKER, QHeaderView::Stretch);
- header->setSectionResizeMode(GameListModel::COL_SIZE, QHeaderView::ResizeToContents);
- header->setSectionResizeMode(GameListModel::COL_DESCRIPTION, QHeaderView::Stretch);
- header->setSectionResizeMode(GameListModel::COL_RATING, QHeaderView::Fixed);
+ QHeaderView* hor_header = m_table->horizontalHeader();
+ hor_header->setSectionResizeMode(GameListModel::COL_PLATFORM, QHeaderView::Fixed);
+ hor_header->setSectionResizeMode(GameListModel::COL_COUNTRY, QHeaderView::Fixed);
+ hor_header->setSectionResizeMode(GameListModel::COL_ID, QHeaderView::ResizeToContents);
+ hor_header->setSectionResizeMode(GameListModel::COL_BANNER, QHeaderView::ResizeToContents);
+ hor_header->setSectionResizeMode(GameListModel::COL_TITLE, QHeaderView::Stretch);
+ hor_header->setSectionResizeMode(GameListModel::COL_MAKER, QHeaderView::Stretch);
+ hor_header->setSectionResizeMode(GameListModel::COL_SIZE, QHeaderView::ResizeToContents);
+ hor_header->setSectionResizeMode(GameListModel::COL_DESCRIPTION, QHeaderView::Stretch);
+ hor_header->setSectionResizeMode(GameListModel::COL_RATING, QHeaderView::Fixed);
+
+ QHeaderView* ver_header = m_table->verticalHeader();
+ ver_header->setSectionResizeMode(QHeaderView::ResizeToContents);
}
void GameList::MakeEmptyView()