Commit Graph

6 Commits

Author SHA1 Message Date
Mariusz Glebocki
4b2cd7c4d9 Remove code for unsupported Qt versions
Summary:
Since minimum Qt version is 5.9.7, code for older versions is not
needed.

Reviewers: #konsole, hindenburg

Reviewed By: #konsole, hindenburg

Subscribers: hindenburg, konsole-devel

Tags: #konsole

Differential Revision: https://phabricator.kde.org/D17746
2018-12-22 22:25:19 -05:00
Kurt Hindenburg
d25e5ac708 Fix mouse wheel scrolling with libinput
If the Libinput X server input driver is used we get a value for
pixelDelta for a physical mouse wheel scroll, so we check that the
source of the wheel event is actually a mouse, this was fixed in
Qt 5.9.5
https://bugreports.qt.io/browse/QTBUG-59261

Patch by ahmadsamir

BUG: 386762
Differential Revision: https://phabricator.kde.org/D9008
2018-02-07 10:38:09 -05:00
Kurt Hindenburg
27e894f05e add check for division by zero 2018-01-06 18:57:04 -05:00
Kurt Hindenburg
fe2f49e461 uncrustify using kf5 config 2017-06-19 10:47:56 -04:00
Kurt Hindenburg
66044df34b fix a lot of issues of readability-implicit-bool-cast 2017-03-29 08:32:59 -04:00
Kurt Hindenburg
5962fb25b3 Fix handling of high precision scroll events
While Konsole's main scrollbar is handled by QtScrollBar and therefore
works as expected under Qt5, the other custom scroll wheel actions
available do not accumulate and handle the small scroll deltas provided.
This results in stuttery, uneven and unexpected responses to scrolling.

Accumulate and trigger events on thresholds. If pixel scroll values are
provided, utilize them when emulating mouseup/mousedown events (by
dividing by pixel font height).

Patch by Lindsay Roberts linds r gmail com

REVIEW: 124590
2015-08-16 15:11:19 -04:00