Qt: Update GameList scrolling to be per pixel to better indicate direction of scroll

Addressing issue https://github.com/PCSX2/pcsx2/issues/6237
This commit is contained in:
Christian Murphy 2022-06-09 18:04:17 +01:00 committed by refractionpcsx2
parent 8a6f55a63e
commit 200ec5dcfb
1 changed files with 3 additions and 0 deletions

View File

@ -92,6 +92,7 @@ void GameListWidget::initialize()
m_table_view->horizontalHeader()->setContextMenuPolicy(Qt::CustomContextMenu);
m_table_view->verticalHeader()->hide();
m_table_view->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
m_table_view->setVerticalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
loadTableViewColumnVisibilitySettings();
loadTableViewColumnSortSettings();
@ -119,6 +120,8 @@ void GameListWidget::initialize()
m_list_view->setContextMenuPolicy(Qt::CustomContextMenu);
m_list_view->setFrameStyle(QFrame::NoFrame);
m_list_view->setSpacing(m_model->getCoverArtSpacing());
m_list_view->setVerticalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
updateListFont();
connect(m_list_view->selectionModel(), &QItemSelectionModel::currentChanged, this,