diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-08-24 07:01:08 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-08-24 07:06:04 (GMT) |
commit | 2593f07f5c4f736c4b6f5d41a96049801f29e13c (patch) | |
tree | eb0525ef01244c9d0dcd857af11c0da43bd934ae /src/gui/widgets/qabstractscrollarea_p.h | |
parent | 6af5f111e0f9463c3a907e187b1276c947ed43e2 (diff) | |
download | Qt-2593f07f5c4f736c4b6f5d41a96049801f29e13c.zip Qt-2593f07f5c4f736c4b6f5d41a96049801f29e13c.tar.gz Qt-2593f07f5c4f736c4b6f5d41a96049801f29e13c.tar.bz2 |
Gestures, Mac: remove pan gesture from qabstractscrollarea
On Mac there really is no native pan gesture. Instead, this
gesture is delivered as mouse wheel events. So adding a
pan gesture to qabstractscrollarea means that it will get
both wheel and pan events. And both will try to move the
viweport. I think that the correct thing to do here is
to not apply a pan gesture by default on all scroll areas.
Diffstat (limited to 'src/gui/widgets/qabstractscrollarea_p.h')
-rw-r--r-- | src/gui/widgets/qabstractscrollarea_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qabstractscrollarea_p.h b/src/gui/widgets/qabstractscrollarea_p.h index 211b7a7..a5acdd1 100644 --- a/src/gui/widgets/qabstractscrollarea_p.h +++ b/src/gui/widgets/qabstractscrollarea_p.h @@ -102,8 +102,8 @@ public: QScopedPointer<QObject> viewportFilter; virtual void _q_gestureTriggered(); - QPanGesture *panGesture; #ifdef Q_WS_WIN + QPanGesture *panGesture; bool singleFingerPanEnabled; void setSingleFingerPanEnabled(bool on = true); #endif |