From fe2f49e4612fb237891c3d08e6eec6f3d3fd6082 Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Mon, 19 Jun 2017 10:47:56 -0400 Subject: [PATCH] uncrustify using kf5 config --- src/ScrollState.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ScrollState.cpp b/src/ScrollState.cpp index 830674771..9aaabaed3 100644 --- a/src/ScrollState.cpp +++ b/src/ScrollState.cpp @@ -23,12 +23,13 @@ using namespace Konsole; -void ScrollState::addWheelEvent(const QWheelEvent* wheel) +void ScrollState::addWheelEvent(const QWheelEvent *wheel) { - if ((wheel->angleDelta().y() != 0) && (wheel->pixelDelta().y() == 0)) + if ((wheel->angleDelta().y() != 0) && (wheel->pixelDelta().y() == 0)) { _remainingScrollPixel = 0; - else + } else { _remainingScrollPixel += wheel->pixelDelta().y(); + } _remainingScrollAngle += wheel->angleDelta().y(); } @@ -42,8 +43,9 @@ int ScrollState::consumeLegacySteps(int stepsize) { int steps = _remainingScrollAngle / stepsize; _remainingScrollAngle -= steps * stepsize; - if (steps != 0) + if (steps != 0) { _remainingScrollPixel = 0; + } return steps; } @@ -60,4 +62,3 @@ int ScrollState::consumeSteps(int pixelStepSize, int angleStepSize) _remainingScrollPixel = 0; return steps; } -