From dd5b16831c9308edd6105b1c7eda3c7f6e99e70a Mon Sep 17 00:00:00 2001 From: NotTsunami <4589807+NotTsunami@users.noreply.github.com> Date: Wed, 16 Mar 2022 21:45:24 -0400 Subject: [PATCH] Unify coding style --- src/gui/properties/peerlistwidget.cpp | 4 ++-- src/gui/transferlistwidget.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; }