diff options
author | Shawn Rutledge <[email protected]> | 2014-12-05 10:28:20 +0100 |
---|---|---|
committer | Shawn Rutledge <[email protected]> | 2015-01-28 17:14:37 +0000 |
commit | 44ab79012f1662a4efa7c506b6ebc4466c50b3e9 (patch) | |
tree | 856c2bb40a42da5fb905bc858af87505fa2a75e8 /src/quick/items/qquickmousearea_p_p.h | |
parent | 9a23ecfb58c4795a7d3e722088c81a823cfb8c8d (diff) |
MouseArea: add scrollGestureEnabled property
If true, scroll gestures coming from the operating system can cause
wheel to be emitted; if false, only an actual mouse wheel will do that.
The photosurface example demostrates the use case.
1) the flick gesture on a trackpad should flick the underlying
Flickable, not zoom an individual image
2) mouse wheel should zoom an individual image if the cursor is
pointing to it
3) dragging an image on a touchscreen should be possible, independently
of flicking the Flickable. This means multiPointTouchEnabled should be
true, so we cannot interpret multiPointTouchEnabled to mean that
multipoint touch scroll gestures should be disabled.
Change-Id: Ie063556866f07b3fbadc53990b110edeed532710
Reviewed-by: Morten Johan Sørvig <[email protected]>
Diffstat (limited to 'src/quick/items/qquickmousearea_p_p.h')
-rw-r--r-- | src/quick/items/qquickmousearea_p_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/items/qquickmousearea_p_p.h b/src/quick/items/qquickmousearea_p_p.h index 73db6ea36f..630b60f1be 100644 --- a/src/quick/items/qquickmousearea_p_p.h +++ b/src/quick/items/qquickmousearea_p_p.h @@ -78,6 +78,7 @@ public: bool isWheelConnected(); bool enabled : 1; + bool scrollGestureEnabled : 1; bool hovered : 1; bool longPress : 1; bool moved : 1; |