summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qmultitouch_mac_p.h
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-06-22 14:49:09 +0200
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-06-22 15:02:05 +0200
commit3ead3dff7e713057b03cd2b969896f196b7ca2f0 (patch)
treed4e6f44e3720b8d1f03b88336bdcc1c3fa900aa9 /src/gui/kernel/qmultitouch_mac_p.h
parentf31240c216e19fe02547f078608fa8c0a2aaca7d (diff)
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.h4
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 9ec256af9d..0c45df446c 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;