From ae8d1a3a609094765944f6c19f439e9987fcd3c5 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Fri, 16 Apr 2021 21:07:58 +0200 Subject: [PATCH] Qt: smoother scrolling in savedata manager --- rpcs3/rpcs3qt/save_manager_dialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpcs3/rpcs3qt/save_manager_dialog.cpp b/rpcs3/rpcs3qt/save_manager_dialog.cpp index ef924d3ba6..0334e0735f 100644 --- a/rpcs3/rpcs3qt/save_manager_dialog.cpp +++ b/rpcs3/rpcs3qt/save_manager_dialog.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #include "Utilities/File.h" @@ -119,6 +120,10 @@ void save_manager_dialog::Init() m_list->setSelectionBehavior(QAbstractItemView::SelectRows); m_list->setContextMenuPolicy(Qt::CustomContextMenu); m_list->setColumnCount(5); + m_list->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel); + m_list->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel); + m_list->verticalScrollBar()->setSingleStep(20); + m_list->horizontalScrollBar()->setSingleStep(10); m_list->setHorizontalHeaderLabels(QStringList() << tr("Icon") << tr("Title & Subtitle") << tr("Last Modified") << tr("Save ID") << tr("Notes")); m_list->horizontalHeader()->setSectionResizeMode(0, QHeaderView::Fixed); m_list->horizontalHeader()->setStretchLastSection(true);