summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qgesturemanager.cpp
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-04 18:26:40 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-05 11:54:51 (GMT)
commit6777135b2cacd3a72a60ff372749837b67762fbe (patch)
tree5caf0678a75d45bc927cf284c543d06b28a32828 /src/gui/kernel/qgesturemanager.cpp
parentf4450efb6fbc9fd0e592d5bc3bce37d5bf272984 (diff)
downloadQt-6777135b2cacd3a72a60ff372749837b67762fbe.zip
Qt-6777135b2cacd3a72a60ff372749837b67762fbe.tar.gz
Qt-6777135b2cacd3a72a60ff372749837b67762fbe.tar.bz2
Implemented Tap and TapAndHold gestures.
Added QGesture objects and gesture recognizers based on touch events. Reviewed-by: Bradley T. Hughes
Diffstat (limited to 'src/gui/kernel/qgesturemanager.cpp')
-rw-r--r--src/gui/kernel/qgesturemanager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/kernel/qgesturemanager.cpp b/src/gui/kernel/qgesturemanager.cpp
index 662a64b..375116f 100644
--- a/src/gui/kernel/qgesturemanager.cpp
+++ b/src/gui/kernel/qgesturemanager.cpp
@@ -91,9 +91,12 @@ QGestureManager::QGestureManager(QObject *parent)
registerGestureRecognizer(new QPanGestureRecognizer);
registerGestureRecognizer(new QPinchGestureRecognizer);
registerGestureRecognizer(new QSwipeGestureRecognizer);
+ registerGestureRecognizer(new QTapGestureRecognizer);
+#endif
#if defined(Q_OS_WIN)
registerGestureRecognizer(new QWinNativePanGestureRecognizer);
-#endif
+#else
+ registerGestureRecognizer(new QTapAndHoldGestureRecognizer);
#endif
}