summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qgesture_p.h
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/qgesture_p.h
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/qgesture_p.h')
-rw-r--r--src/gui/kernel/qgesture_p.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/gui/kernel/qgesture_p.h b/src/gui/kernel/qgesture_p.h
index a571bdb..2537f47 100644
--- a/src/gui/kernel/qgesture_p.h
+++ b/src/gui/kernel/qgesture_p.h
@@ -151,6 +151,32 @@ public:
QTime time;
};
+class QTapGesturePrivate : public QGesturePrivate
+{
+ Q_DECLARE_PUBLIC(QTapGesture)
+
+public:
+ QTapGesturePrivate()
+ {
+ }
+
+ QPointF position;
+};
+
+class QTapAndHoldGesturePrivate : public QGesturePrivate
+{
+ Q_DECLARE_PUBLIC(QTapAndHoldGesture)
+
+public:
+ QTapAndHoldGesturePrivate()
+ : timerId(0)
+ {
+ }
+
+ QPointF position;
+ int timerId;
+};
+
QT_END_NAMESPACE
#endif // QGESTURE_P_H