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)
{ {
// Shift + scroll = horizontal scroll // Shift + scroll = horizontal scroll
event->accept(); event->accept();
QWheelEvent scrollHEvent(event->position(), event->globalPosition() QWheelEvent scrollHEvent {event->position(), event->globalPosition()
, event->pixelDelta(), event->angleDelta().transposed(), event->buttons() , 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); QTreeView::wheelEvent(&scrollHEvent);
return; return;
} }

4
src/gui/transferlistwidget.cpp

@ -1248,9 +1248,9 @@ void TransferListWidget::wheelEvent(QWheelEvent *event)
{ {
// Shift + scroll = horizontal scroll // Shift + scroll = horizontal scroll
event->accept(); event->accept();
QWheelEvent scrollHEvent(event->position(), event->globalPosition() QWheelEvent scrollHEvent {event->position(), event->globalPosition()
, event->pixelDelta(), event->angleDelta().transposed(), event->buttons() , 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); QTreeView::wheelEvent(&scrollHEvent);
return; return;
} }

Loading…
Cancel
Save