summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-07-26 14:25:30 +1000
committerQt by Nokia <qt-info@nokia.com>2012-07-26 15:13:24 +0200
commit281d4995ec2fce19ac008635836863e070e94ac7 (patch)
treebe5f39ffcc84cbf390f56ba01613bd37ba39974a /src/widgets/kernel
parenta0373d8d3673fbb495ae475d5e2599816d62e31d (diff)
Fix position of mouse events generated from touch events.
In touch event terminology the global position is the screenPos, scenePos is the windowPos. Fixes a tst_qdeclarativepincharea test failure in qtquick1. Change-Id: Ie98fe12be8cbedc9b019913b066e7c4bce75278d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Diffstat (limited to 'src/widgets/kernel')
-rw-r--r--src/widgets/kernel/qapplication.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp
index 3fdc3e4ab9..dc09155438 100644
--- a/src/widgets/kernel/qapplication.cpp
+++ b/src/widgets/kernel/qapplication.cpp
@@ -4424,7 +4424,7 @@ bool QApplicationPrivate::translateTouchToMouse(QWidget *widget, QTouchEvent *ev
if (eventType == QEvent::None)
continue;
- const QPoint pos = widget->mapFromGlobal(p.scenePos().toPoint());
+ const QPoint pos = widget->mapFromGlobal(p.screenPos().toPoint());
QMouseEvent mouseEvent(eventType, pos,
Qt::LeftButton, Qt::LeftButton,