diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2012-07-26 14:25:30 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-26 15:13:24 +0200 |
commit | 281d4995ec2fce19ac008635836863e070e94ac7 (patch) | |
tree | be5f39ffcc84cbf390f56ba01613bd37ba39974a /src/widgets/kernel | |
parent | a0373d8d3673fbb495ae475d5e2599816d62e31d (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.cpp | 2 |
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, |