diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2011-09-20 12:17:28 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-09-20 17:37:18 +0200 |
commit | 252d1b34b26779cbc1ac269f4af7fdb1f27038ef (patch) | |
tree | 8143ba5f6b115172a09a1ff7da160ae901cc04ed /src/plugins/platforms/cocoa/qmultitouch_mac.mm | |
parent | d5f12b898b8480c891382c54672422c50218751a (diff) |
QWindowSystemInterface: Fix wrong mapping of coordinates.
QTouchEvent::TouchPoint assumes the rect() is in local coordinates,
whereas QWindowSystemInterface::TouchPoint uses screen coordinates.
We must therefore use QWindowSystemInterface::TouchPoint::area as the
screenRect() rather that the rect() and then use the screen coordinate
to calculate the local coordinate by using mapFromGlobal.
Change-Id: If7a52f5668c3938f46bdd38a5ea82b5313d6b626
Reviewed-on: http://codereview.qt-project.org/5253
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bjørn Erik Nilsen <bjorn.nilsen@nokia.com>
Diffstat (limited to 'src/plugins/platforms/cocoa/qmultitouch_mac.mm')
0 files changed, 0 insertions, 0 deletions