diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-11-18 12:27:24 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-11-18 15:15:49 (GMT) |
commit | c9ff28c5c56eaf5443921b937cf7c0270eaadd86 (patch) | |
tree | 99ee8c058948ee7aca56b09c76d7e0e292cf6d12 /src/gui/kernel/qmultitouch_mac.mm | |
parent | 41e7781f76432ee821883505d68a89e0aadd56b1 (diff) | |
download | Qt-c9ff28c5c56eaf5443921b937cf7c0270eaadd86.zip Qt-c9ff28c5c56eaf5443921b937cf7c0270eaadd86.tar.gz Qt-c9ff28c5c56eaf5443921b937cf7c0270eaadd86.tar.bz2 |
Fixes in the multitouch handling.
When filling in touch point data for delivering to widget don't use the setter
methods to avoid unnecessary detaches. Making it not detach also allows not to
re-calculate widget-relative start position and last position on each delivery
step.
Also use the QWeakPointer to store a pointer to a widget that expects to
receive a touch event, so that if the widget is destroyed we'll get notified.
Reviewed-by: Bradley T. Hughes
Diffstat (limited to 'src/gui/kernel/qmultitouch_mac.mm')
-rw-r--r-- | src/gui/kernel/qmultitouch_mac.mm | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gui/kernel/qmultitouch_mac.mm b/src/gui/kernel/qmultitouch_mac.mm index 2f6f9ca..f736146 100644 --- a/src/gui/kernel/qmultitouch_mac.mm +++ b/src/gui/kernel/qmultitouch_mac.mm @@ -180,7 +180,6 @@ QCocoaTouch::getCurrentTouchPointList(NSEvent *event, bool acceptSingleTouch) if (_touchCount != _currentTouches.size()) { // Remove all instances, and basically start from scratch: touchPoints.clear(); - QList<QCocoaTouch *> list = _currentTouches.values(); foreach (QCocoaTouch *qcocoaTouch, _currentTouches.values()) { if (!_updateInternalStateOnly) { qcocoaTouch->_touchPoint.setState(Qt::TouchPointReleased); |