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/qevent.h | |
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/qevent.h')
-rw-r--r-- | src/gui/kernel/qevent.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h index 9839269..461cc92 100644 --- a/src/gui/kernel/qevent.h +++ b/src/gui/kernel/qevent.h @@ -787,6 +787,8 @@ public: private: QTouchEventTouchPointPrivate *d; + friend class QApplication; + friend class QApplicationPrivate; }; enum DeviceType { @@ -818,6 +820,7 @@ protected: Qt::TouchPointStates _touchPointStates; QList<QTouchEvent::TouchPoint> _touchPoints; + friend class QApplication; friend class QApplicationPrivate; }; |