Qt: Scroll GameList by pixels using scrollwheel

This commit is contained in:
neonoxd 2022-08-31 21:05:05 +02:00 committed by lightningterror
parent ee88ea90ee
commit f2d86f2782
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@
#include <QtWidgets/QApplication>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QMenu>
#include <QtWidgets/QScrollBar>
#include "GameListModel.h"
#include "GameListRefreshThread.h"
@ -187,6 +188,7 @@ void GameListWidget::initialize()
m_list_view->setFrameStyle(QFrame::NoFrame);
m_list_view->setSpacing(m_model->getCoverArtSpacing());
m_list_view->setVerticalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
m_list_view->verticalScrollBar()->setSingleStep(15);
updateListFont();