Browse Source

Unify coding style

adaptive-webui-19844
NotTsunami 3 years ago
parent
commit
dd5b16831c
  1. 4
      src/gui/properties/peerlistwidget.cpp
  2. 4
      src/gui/transferlistwidget.cpp

4
src/gui/properties/peerlistwidget.cpp

@ -530,9 +530,9 @@ void PeerListWidget::wheelEvent(QWheelEvent *event) @@ -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;
}

4
src/gui/transferlistwidget.cpp

@ -1248,9 +1248,9 @@ void TransferListWidget::wheelEvent(QWheelEvent *event) @@ -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;
}

Loading…
Cancel
Save