summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qgesture_p.h
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-03 10:56:11 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-05 11:54:39 (GMT)
commit70c1c87a3df52e510413c3e8512d9e55df00e7bd (patch)
tree317c16985488478830bce6a508afa690662ba7a3 /src/gui/kernel/qgesture_p.h
parentee88b2d8408396188eb2ce52d740c395c6cd4656 (diff)
downloadQt-70c1c87a3df52e510413c3e8512d9e55df00e7bd.zip
Qt-70c1c87a3df52e510413c3e8512d9e55df00e7bd.tar.gz
Qt-70c1c87a3df52e510413c3e8512d9e55df00e7bd.tar.bz2
Implemented QSwipeGesture recognizer using touch events.
Reviewed-by: Bradley T. Hughes
Diffstat (limited to 'src/gui/kernel/qgesture_p.h')
-rw-r--r--src/gui/kernel/qgesture_p.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/kernel/qgesture_p.h b/src/gui/kernel/qgesture_p.h
index ae2e287..a571bdb 100644
--- a/src/gui/kernel/qgesture_p.h
+++ b/src/gui/kernel/qgesture_p.h
@@ -136,13 +136,19 @@ public:
QSwipeGesturePrivate()
: horizontalDirection(QSwipeGesture::NoDirection),
verticalDirection(QSwipeGesture::NoDirection),
- swipeAngle(0)
+ swipeAngle(0),
+ started(false), speed(0)
{
}
QSwipeGesture::SwipeDirection horizontalDirection;
QSwipeGesture::SwipeDirection verticalDirection;
qreal swipeAngle;
+
+ QPoint lastPositions[3];
+ bool started;
+ qreal speed;
+ QTime time;
};
QT_END_NAMESPACE