summaryrefslogtreecommitdiff
path: root/src/gui/kernel/qstandardgestures_p.h
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-08-03 18:24:44 +0200
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-08-04 16:22:45 +0200
commit6e7a6478279a94a82af46e6814f113244aca46dd (patch)
treeabd54ce05996b2377fa78b3b895446f85ab15e90 /src/gui/kernel/qstandardgestures_p.h
parentfbee62af06ebe2c8cf6da1cc18a665c69c64eff7 (diff)
downloadqt4-tools-6e7a6478279a94a82af46e6814f113244aca46dd.tar.gz
Moved the native window gesture handling code to the right place.
Diffstat (limited to 'src/gui/kernel/qstandardgestures_p.h')
-rw-r--r--src/gui/kernel/qstandardgestures_p.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/gui/kernel/qstandardgestures_p.h b/src/gui/kernel/qstandardgestures_p.h
index 0fd42bda8c..dd4fbc0eb7 100644
--- a/src/gui/kernel/qstandardgestures_p.h
+++ b/src/gui/kernel/qstandardgestures_p.h
@@ -60,6 +60,8 @@
#include "qgesture.h"
#include "qgesture_p.h"
+#include "qstandardgestures.h"
+
QT_BEGIN_NAMESPACE
class QPanGesturePrivate : public QGesturePrivate
@@ -67,11 +69,16 @@ class QPanGesturePrivate : public QGesturePrivate
Q_DECLARE_PUBLIC(QPanGesture)
public:
- QPanGesturePrivate() { }
+ QPanGesturePrivate()
+ {
+#if defined(Q_OS_MAC) && !defined(QT_MAC_USE_COCOA)
+ panFinishedTimer = 0;
+#endif
+ }
- QList<QTouchEvent::TouchPoint> touchPoints;
QSize totalOffset;
QSize lastOffset;
+ QPoint lastPosition;
#if defined(Q_OS_MAC) && !defined(QT_MAC_USE_COCOA)
int panFinishedTimer;