diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-08-06 10:10:16 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-08-06 14:09:04 (GMT) |
commit | c53004694b49d8e4e6c4cfd294efb6589559c2f3 (patch) | |
tree | a50a3daeb441f795def11b62b48d27e9d4088052 /src/gui/kernel/qevent_p.h | |
parent | 443a7b6f3eb1191b20240b5068da386d669045fc (diff) | |
download | Qt-c53004694b49d8e4e6c4cfd294efb6589559c2f3.zip Qt-c53004694b49d8e4e6c4cfd294efb6589559c2f3.tar.gz Qt-c53004694b49d8e4e6c4cfd294efb6589559c2f3.tar.bz2 |
Cocoa: Add support for native gestures
Cocoa: Add support for native gestures
Diffstat (limited to 'src/gui/kernel/qevent_p.h')
-rw-r--r-- | src/gui/kernel/qevent_p.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/kernel/qevent_p.h b/src/gui/kernel/qevent_p.h index 92c4fc1..b21b35c 100644 --- a/src/gui/kernel/qevent_p.h +++ b/src/gui/kernel/qevent_p.h @@ -127,11 +127,13 @@ public: GestureBegin, GestureEnd, Pan, - Pinch + Zoom, + Rotate, + Swipe }; QNativeGestureEvent() - : QEvent(QEvent::NativeGesture), gestureType(None) + : QEvent(QEvent::NativeGesture), gestureType(None), percentage(0), direction(0, 0) #ifdef Q_WS_WIN , sequenceId(0) #endif @@ -139,8 +141,10 @@ public: } Type gestureType; -#ifdef Q_WS_WIN + float percentage; QPoint position; + QSize direction; +#ifdef Q_WS_WIN ulong sequenceId; #endif }; |