summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-16 14:40:56 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-16 14:48:15 (GMT)
commitd19dd41a306b72133d42375df056e88d2ffd6f80 (patch)
tree89f92c6bfee50d89adfe623650d8ca3ab3da197e
parentf6814daef41f438f6c78bf7e67f98c5b552201e4 (diff)
downloadQt-d19dd41a306b72133d42375df056e88d2ffd6f80.zip
Qt-d19dd41a306b72133d42375df056e88d2ffd6f80.tar.gz
Qt-d19dd41a306b72133d42375df056e88d2ffd6f80.tar.bz2
Fixed swipe gesture on the Mac.
Swipe on Mac is a singleshot gesture which goes directly to the finished state (fake gesture started event will be sent by Qt in this case). Reviewed-by: Richard
-rw-r--r--src/gui/kernel/qmacgesturerecognizer_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qmacgesturerecognizer_mac.mm b/src/gui/kernel/qmacgesturerecognizer_mac.mm
index f142d71..3e0ba23 100644
--- a/src/gui/kernel/qmacgesturerecognizer_mac.mm
+++ b/src/gui/kernel/qmacgesturerecognizer_mac.mm
@@ -67,7 +67,7 @@ QMacSwipeGestureRecognizer::recognize(QGesture *gesture, QObject *obj, QEvent *e
case QNativeGestureEvent::Swipe: {
QSwipeGesture *g = static_cast<QSwipeGesture *>(gesture);
g->setSwipeAngle(ev->angle);
- return QGestureRecognizer::TriggerGesture | QGestureRecognizer::ConsumeEventHint;
+ return QGestureRecognizer::FinishGesture | QGestureRecognizer::ConsumeEventHint;
break; }
default:
break;