path: root/src/gui
diff options
authorAllan Sandfeld Jensen <>2017-11-23 14:25:04 +0100
committerAllan Sandfeld Jensen <>2018-01-09 11:53:28 +0000
commitd196036024697a75868c1f1626525710495ca428 (patch)
tree30a699a768e1937799f7450ba10f78374a9f565f /src/gui
parent907a99f65b88cc5af85127ef8b665b173832b43e (diff)
Avoid providing bad pixelDeltas on X11
With libinput we now get a hardcoded resolution that is unrelated to the hardware. So avoid using that as a real pixel delta and document pixel deltas as being driver specific and unreliable on X11. Task-number: QTBUG-59261 Change-Id: I9fe86d80e7ccd290ed2e4091d7eafa52cb537d34 Reviewed-by: David Edmundson <> Reviewed-by: Marco Martin <> Reviewed-by: Gatis Paeglis <>
Diffstat (limited to 'src/gui')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp
index 06d52aa78d..c68f9afa56 100644
--- a/src/gui/kernel/qevent.cpp
+++ b/src/gui/kernel/qevent.cpp
@@ -971,6 +971,7 @@ QWheelEvent::QWheelEvent(const QPointF &pos, const QPointF& globalPos,
\li scrolling is about to begin, but the distance did not yet change (Qt::ScrollBegin),
\li or scrolling has ended and the distance did not change anymore (Qt::ScrollEnd).
+ \note On X11 this value is driver specific and unreliable, use angleDelta() instead