src/gui/kernel/qmultitouch_mac.mm
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   178     // gesture happend (like a four-finger-swipe to show expose).
   178     // gesture happend (like a four-finger-swipe to show expose).
   179 
   179 
   180     if (_touchCount != _currentTouches.size()) {
   180     if (_touchCount != _currentTouches.size()) {
   181         // Remove all instances, and basically start from scratch:
   181         // Remove all instances, and basically start from scratch:
   182         touchPoints.clear();
   182         touchPoints.clear();
   183         QList<QCocoaTouch *> list = _currentTouches.values();
       
   184         foreach (QCocoaTouch *qcocoaTouch, _currentTouches.values()) {
   183         foreach (QCocoaTouch *qcocoaTouch, _currentTouches.values()) {
   185             if (!_updateInternalStateOnly) {
   184             if (!_updateInternalStateOnly) {
   186                 qcocoaTouch->_touchPoint.setState(Qt::TouchPointReleased);
   185                 qcocoaTouch->_touchPoint.setState(Qt::TouchPointReleased);
   187                 touchPoints.insert(qcocoaTouch->_touchPoint.id(), qcocoaTouch->_touchPoint);
   186                 touchPoints.insert(qcocoaTouch->_touchPoint.id(), qcocoaTouch->_touchPoint);
   188             }
   187             }