diff --git a/src/gui/properties/peerlistwidget.cpp b/src/gui/properties/peerlistwidget.cpp index 96d81008d..3ce1392f1 100644 --- a/src/gui/properties/peerlistwidget.cpp +++ b/src/gui/properties/peerlistwidget.cpp @@ -530,9 +530,9 @@ void PeerListWidget::wheelEvent(QWheelEvent *event) { // Shift + scroll = horizontal scroll event->accept(); - QWheelEvent scrollHEvent(event->position(), event->globalPosition() + QWheelEvent scrollHEvent {event->position(), event->globalPosition() , event->pixelDelta(), event->angleDelta().transposed(), event->buttons() - , event->modifiers(), event->phase(), event->inverted(), event->source()); + , event->modifiers(), event->phase(), event->inverted(), event->source()}; QTreeView::wheelEvent(&scrollHEvent); return; } diff --git a/src/gui/transferlistwidget.cpp b/src/gui/transferlistwidget.cpp index 83f3080b8..7d3e2d6f5 100644 --- a/src/gui/transferlistwidget.cpp +++ b/src/gui/transferlistwidget.cpp @@ -1248,9 +1248,9 @@ void TransferListWidget::wheelEvent(QWheelEvent *event) { // Shift + scroll = horizontal scroll event->accept(); - QWheelEvent scrollHEvent(event->position(), event->globalPosition() + QWheelEvent scrollHEvent {event->position(), event->globalPosition() , event->pixelDelta(), event->angleDelta().transposed(), event->buttons() - , event->modifiers(), event->phase(), event->inverted(), event->source()); + , event->modifiers(), event->phase(), event->inverted(), event->source()}; QTreeView::wheelEvent(&scrollHEvent); return; }