diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-12-11 10:38:19 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-12-11 12:02:32 (GMT) |
commit | 05ba6bad6c0927d22ccf026446dfdb9d85b3f03e (patch) | |
tree | a571739da8bb9f706d6623a6e72fd01367ee3fec /bin | |
parent | bafc505ea03ff423c02e0380ba6f255e160483a1 (diff) | |
download | Qt-05ba6bad6c0927d22ccf026446dfdb9d85b3f03e.zip Qt-05ba6bad6c0927d22ccf026446dfdb9d85b3f03e.tar.gz Qt-05ba6bad6c0927d22ccf026446dfdb9d85b3f03e.tar.bz2 |
Fix crashes when deleting QWidgets and QGraphicsItems in touch event handlers.
Use QWeakPointer to bail out early if a widget is deleted while we are
delivering/propagating a TouchBegin event.
In QGraphicsScene, we need to make sure that we clear the scene's
active touch points for items that are removed from the scene. This
allows us to detect when an item is removed during TouchBegin event
delivery/propagation. Unlike QWidget, propagation continues since we
use a hit-test instead of the item's hierarchy for propagation.
Task-number: QTBUG-6654
Reviewed-by: bnilsen
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions