summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qgesturemanager_p.h
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@nokia.com>2010-11-12 09:47:55 (GMT)
committerDominik Holland <dominik.holland@nokia.com>2010-11-12 09:53:59 (GMT)
commit54ce087390724b5e03f95b93a5661d0a60765daa (patch)
tree447ab64d678f7e985de1d00a6aca19e3132f52bd /src/gui/kernel/qgesturemanager_p.h
parente61071a2a170eaeb524778e9e903100323b88bbe (diff)
downloadQt-54ce087390724b5e03f95b93a5661d0a60765daa.zip
Qt-54ce087390724b5e03f95b93a5661d0a60765daa.tar.gz
Qt-54ce087390724b5e03f95b93a5661d0a60765daa.tar.bz2
Crash fix, when the Object will be deleted during handling a QGestureEvent.
The QGestures will now not be deleted immediatly. QGestureManager waits until all QGestureEvents are processed and will delete the QGestures afterwards. Task: QT-4022 Reviewed By: Zeno Albisser
Diffstat (limited to 'src/gui/kernel/qgesturemanager_p.h')
-rw-r--r--src/gui/kernel/qgesturemanager_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qgesturemanager_p.h b/src/gui/kernel/qgesturemanager_p.h
index 0d84b67..a5a3482 100644
--- a/src/gui/kernel/qgesturemanager_p.h
+++ b/src/gui/kernel/qgesturemanager_p.h
@@ -130,6 +130,7 @@ private:
QHash<QGestureRecognizer *, QSet<QGesture *> > m_obsoleteGestures;
QHash<QGesture *, QGestureRecognizer *> m_deletedRecognizers;
+ QSet<QGesture *> m_gesturesToDelete;
void cleanupGesturesForRemovedRecognizer(QGesture *gesture);
QGesture *getState(QObject *widget, QGestureRecognizer *recognizer,