diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-08-26 11:23:10 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-08-27 12:06:13 (GMT) |
commit | 220bb878d78eadfdfd390ca51c1a24378859d4ba (patch) | |
tree | 3eceaae87c66cef9915c0fca2f2784995ee42e4e /src/gui/kernel/qstandardgestures_p.h | |
parent | 2391ed9690cca78249744a768cf955d89b0221fc (diff) | |
download | Qt-220bb878d78eadfdfd390ca51c1a24378859d4ba.zip Qt-220bb878d78eadfdfd390ca51c1a24378859d4ba.tar.gz Qt-220bb878d78eadfdfd390ca51c1a24378859d4ba.tar.bz2 |
Cocoa: Implement single touch pan
Diffstat (limited to 'src/gui/kernel/qstandardgestures_p.h')
-rw-r--r-- | src/gui/kernel/qstandardgestures_p.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/gui/kernel/qstandardgestures_p.h b/src/gui/kernel/qstandardgestures_p.h index 5fbcc5d..8d84f51 100644 --- a/src/gui/kernel/qstandardgestures_p.h +++ b/src/gui/kernel/qstandardgestures_p.h @@ -61,6 +61,7 @@ #include "qgesture_p.h" #include "qstandardgestures.h" +#include "qbasictimer.h" QT_BEGIN_NAMESPACE @@ -69,21 +70,15 @@ class QPanGesturePrivate : public QGesturePrivate Q_DECLARE_PUBLIC(QPanGesture) public: - QPanGesturePrivate() - { -#if defined(Q_OS_MAC) && !defined(QT_MAC_USE_COCOA) - panFinishedTimer = 0; -#endif - } - void setupGestureTarget(QObject *o); - QSize totalOffset; - QSize lastOffset; - QPoint lastPosition; + QSizeF totalOffset; + QSizeF lastOffset; + QPointF lastPosition; -#if defined(Q_OS_MAC) && !defined(QT_MAC_USE_COCOA) - int panFinishedTimer; +#if defined(QT_MAC_USE_COCOA) + QBasicTimer singleTouchPanTimer; + QPointF singleTouchBeginPoint; #endif }; |