mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 16:53:08 -07:00
Set wheel event to accepted only if we handle it
This commit is contained in:
parent
a6c5a90630
commit
e83019bdfa
2 changed files with 4 additions and 4 deletions
|
@ -1226,10 +1226,10 @@ bool TransferListWidget::loadSettings()
|
|||
|
||||
void TransferListWidget::wheelEvent(QWheelEvent *event)
|
||||
{
|
||||
event->accept();
|
||||
|
||||
if (event->modifiers() & Qt::ShiftModifier) {
|
||||
// Shift + scroll = horizontal scroll
|
||||
event->accept();
|
||||
|
||||
QWheelEvent scrollHEvent(event->pos(), event->globalPos(), event->delta(), event->buttons(), event->modifiers(), Qt::Horizontal);
|
||||
QTreeView::wheelEvent(&scrollHEvent);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue