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:
parent
6cfd7baac9
commit
587b275c8e
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue