summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-03-02 15:32:39 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-05-11 13:41:37 (GMT)
commit4e31add7d62f26036a43dfe77db1c6b7e333e21e (patch)
tree9843d05f36464c2410a48d1988ce6e59acffdd33
parentce50bdd854497b2a2aedbdb4417b532799086241 (diff)
downloadQt-4e31add7d62f26036a43dfe77db1c6b7e333e21e.zip
Qt-4e31add7d62f26036a43dfe77db1c6b7e333e21e.tar.gz
Qt-4e31add7d62f26036a43dfe77db1c6b7e333e21e.tar.bz2
Fixes: reset the internal gesture state when gesture in state 'maybe' is finished.
-rw-r--r--src/gui/kernel/qgesturemanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qgesturemanager.cpp b/src/gui/kernel/qgesturemanager.cpp
index c244a0b..2d0137e 100644
--- a/src/gui/kernel/qgesturemanager.cpp
+++ b/src/gui/kernel/qgesturemanager.cpp
@@ -137,7 +137,7 @@ bool QGestureManager::filterEvent(QEvent *event)
}
activeGestures -= newMaybeGestures;
activeGestures += startedGestures;
- foreach(QGestureRecognizer *r, startedGestures+notGestures) {
+ foreach(QGestureRecognizer *r, startedGestures+finishedGestures+notGestures) {
QMap<QGestureRecognizer*, int>::iterator it = maybeGestures.find(r);
if (it != maybeGestures.end()) {
killTimer(it.value());