diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-06-22 12:49:09 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-06-22 13:02:05 (GMT) |
commit | 3ead3dff7e713057b03cd2b969896f196b7ca2f0 (patch) | |
tree | d4e6f44e3720b8d1f03b88336bdcc1c3fa900aa9 /src/gui/kernel/qmultitouch_mac_p.h | |
parent | f31240c216e19fe02547f078608fa8c0a2aaca7d (diff) | |
download | Qt-3ead3dff7e713057b03cd2b969896f196b7ca2f0.zip Qt-3ead3dff7e713057b03cd2b969896f196b7ca2f0.tar.gz Qt-3ead3dff7e713057b03cd2b969896f196b7ca2f0.tar.bz2 |
Multitouch, Cocoa: Added Qt::WA_TouchPadAcceptSingleTouchEvents
By default this is set to false, meaning you will only get multitouch
events. The reason why this is important is that we use the first
touch of a new touch sequence to find out which widget to send
the subsequent touches to. And on a touchpad, you normally want
this to be the widget under the cursor when more than one finger
is pressed on the pad.
Diffstat (limited to 'src/gui/kernel/qmultitouch_mac_p.h')
-rw-r--r-- | src/gui/kernel/qmultitouch_mac_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qmultitouch_mac_p.h b/src/gui/kernel/qmultitouch_mac_p.h index 9ec256a..0c45df4 100644 --- a/src/gui/kernel/qmultitouch_mac_p.h +++ b/src/gui/kernel/qmultitouch_mac_p.h @@ -70,7 +70,7 @@ QT_BEGIN_NAMESPACE class QCocoaTouch { public: - static QList<QTouchEvent::TouchPoint> getCurrentTouchPointList(NSEvent *event, bool maskMouseHover); + static QList<QTouchEvent::TouchPoint> getCurrentTouchPointList(NSEvent *event, bool acceptSingleTouch); static void setMouseInDraggingState(bool inDraggingState); private: @@ -79,7 +79,7 @@ class QCocoaTouch static QPointF _trackpadReferencePos; static int _idAssignmentCount; static int _touchCount; - static bool _maskMouseHover; + static bool _updateInternalStateOnly; QTouchEvent::TouchPoint _touchPoint; QPointF _trackpadPos; |