Merge pull request #14592 from jordan-woyak/memcard-manager-scrolling

DolphinQt/GCMemcardManager: Set ScrollMode::ScrollPerPixel to make scrolling behavior less annoying.
This commit is contained in:
Admiral H. Curtiss 2026-05-11 23:04:22 +02:00 committed by GitHub
commit 34311f5fa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -133,6 +133,8 @@ void GCMemcardManager::CreateWidgets()
m_slot_create_button[slot] = new NonDefaultQPushButton(tr("&Create..."));
m_slot_table[slot] = new QTableWidget;
m_slot_table[slot]->setTabKeyNavigation(false);
m_slot_table[slot]->setHorizontalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
m_slot_table[slot]->setVerticalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
m_slot_stat_label[slot] = new QLabel;
m_slot_table[slot]->setSelectionMode(QAbstractItemView::ExtendedSelection);
@ -241,7 +243,6 @@ void GCMemcardManager::SetActiveSlot(Slot slot)
m_active_slot = slot;
UpdateSlotTable(slot);
UpdateActions();
}