Qt: Increase the height of game list items

This makes the images in the game list look less weird (since they are
not squashed together anymore). The list also looks more like WX now.
This commit is contained in:
Léo Lam 2017-09-14 19:28:36 +02:00
parent 6cfd7baac9
commit 587b275c8e
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,8 @@ void GameList::MakeListView()
m_list->setCurrentIndex(QModelIndex()); m_list->setCurrentIndex(QModelIndex());
m_list->setContextMenuPolicy(Qt::CustomContextMenu); m_list->setContextMenuPolicy(Qt::CustomContextMenu);
m_list->setWordWrap(false); m_list->setWordWrap(false);
m_list->verticalHeader()->setDefaultSectionSize(m_list->verticalHeader()->defaultSectionSize() *
1.25);
connect(m_list, &QTableView::customContextMenuRequested, this, &GameList::ShowContextMenu); connect(m_list, &QTableView::customContextMenuRequested, this, &GameList::ShowContextMenu);
connect(m_list->selectionModel(), &QItemSelectionModel::selectionChanged, connect(m_list->selectionModel(), &QItemSelectionModel::selectionChanged,