mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
8a6f55a63e
commit
200ec5dcfb
|
@ -92,6 +92,7 @@ void GameListWidget::initialize()
|
||||||
m_table_view->horizontalHeader()->setContextMenuPolicy(Qt::CustomContextMenu);
|
m_table_view->horizontalHeader()->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||||
m_table_view->verticalHeader()->hide();
|
m_table_view->verticalHeader()->hide();
|
||||||
m_table_view->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
|
m_table_view->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
|
||||||
|
m_table_view->setVerticalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
|
||||||
|
|
||||||
loadTableViewColumnVisibilitySettings();
|
loadTableViewColumnVisibilitySettings();
|
||||||
loadTableViewColumnSortSettings();
|
loadTableViewColumnSortSettings();
|
||||||
|
@ -119,6 +120,8 @@ void GameListWidget::initialize()
|
||||||
m_list_view->setContextMenuPolicy(Qt::CustomContextMenu);
|
m_list_view->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||||
m_list_view->setFrameStyle(QFrame::NoFrame);
|
m_list_view->setFrameStyle(QFrame::NoFrame);
|
||||||
m_list_view->setSpacing(m_model->getCoverArtSpacing());
|
m_list_view->setSpacing(m_model->getCoverArtSpacing());
|
||||||
|
m_list_view->setVerticalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
|
||||||
|
|
||||||
updateListFont();
|
updateListFont();
|
||||||
|
|
||||||
connect(m_list_view->selectionModel(), &QItemSelectionModel::currentChanged, this,
|
connect(m_list_view->selectionModel(), &QItemSelectionModel::currentChanged, this,
|
||||||
|
|
Loading…
Reference in New Issue