diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-11-04 18:26:40 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-11-05 11:54:51 (GMT) |
commit | 6777135b2cacd3a72a60ff372749837b67762fbe (patch) | |
tree | 5caf0678a75d45bc927cf284c543d06b28a32828 /src/gui/kernel/qgesturemanager.cpp | |
parent | f4450efb6fbc9fd0e592d5bc3bce37d5bf272984 (diff) | |
download | Qt-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.cpp | 5 |
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 } |