Fix the compat handleWheelEvent function.
authorMorten Johan Sorvig <morten.sorvig@nokia.com>
Fri, 2 Mar 2012 11:04:02 +0000 (12:04 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 19 Mar 2012 08:18:49 +0000 (09:18 +0100)
Only set the angleDelta QPoint when the platform
sends a delta/orientation pair.

Change-Id: I0440dca8b290bce10830c04ba42c5c955cd8e001
Reviewed-by: Luis Gabriel Lima <luis.gabriel@openbossa.org>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
src/gui/kernel/qwindowsysteminterface_qpa.cpp

index 9ab91d6..1953ce4 100644 (file)
@@ -225,7 +225,7 @@ void QWindowSystemInterface::handleWheelEvent(QWindow *w, const QPointF & local,
 void QWindowSystemInterface::handleWheelEvent(QWindow *tlw, ulong timestamp, const QPointF & local, const QPointF & global, int d, Qt::Orientation o, Qt::KeyboardModifiers mods)
 {
     QPoint point = (o == Qt::Vertical) ? QPoint(0, d) : QPoint(d, 0);
-    handleWheelEvent(tlw, timestamp, local, global, point, point, mods);
+    handleWheelEvent(tlw, timestamp, local, global, QPoint(), point, mods);
 }
 
 void QWindowSystemInterface::handleWheelEvent(QWindow *w, const QPointF & local, const QPointF & global, QPoint pixelDelta, QPoint angleDelta, Qt::KeyboardModifiers mods)