mirror of https://github.com/PCSX2/pcsx2.git
Qt: Scroll GameList by pixels using scrollwheel
This commit is contained in:
parent
ee88ea90ee
commit
f2d86f2782
|
@ -27,6 +27,7 @@
|
||||||
#include <QtWidgets/QApplication>
|
#include <QtWidgets/QApplication>
|
||||||
#include <QtWidgets/QHeaderView>
|
#include <QtWidgets/QHeaderView>
|
||||||
#include <QtWidgets/QMenu>
|
#include <QtWidgets/QMenu>
|
||||||
|
#include <QtWidgets/QScrollBar>
|
||||||
|
|
||||||
#include "GameListModel.h"
|
#include "GameListModel.h"
|
||||||
#include "GameListRefreshThread.h"
|
#include "GameListRefreshThread.h"
|
||||||
|
@ -187,6 +188,7 @@ void GameListWidget::initialize()
|
||||||
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);
|
m_list_view->setVerticalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
|
||||||
|
m_list_view->verticalScrollBar()->setSingleStep(15);
|
||||||
|
|
||||||
updateListFont();
|
updateListFont();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue