diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-05-08 10:20:33 +0200 |
---|---|---|
committer | Antti Kokko <antti.kokko@qt.io> | 2017-05-08 10:43:32 +0000 |
commit | 9f80a466772c7e61bf7013e5c2e1726ca7c85b50 (patch) | |
tree | 12b501c1b3d4b0910cee9ffdfe2c658cbf7d55ac /src/quicktemplates2/qquickoverlay_p_p.h | |
parent | beb250bb5dc5ab14f64618a097b09257b6eb3041 (diff) |
Fix drawers not to be touch-draggable through modal popup shadows
Material style popups have a shadow outside the popup. QQuickOverlay
cannot block press events to children of a popup, because otherwise
interacting with popup contents would be impossible. However, since
the shadow is outside of the popup, touch events don't propagate to
the popup and get naturally blocked by the popup background. Instead,
the touch event propagates to the overlay. At this point, we must do
an additional check whether we're allowed to start dragging a drawer.
Task-number: QTBUG-60602
Change-Id: I9b5c81246bca7ea40bce0e46dc2e94558a0b9204
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickoverlay_p_p.h')
-rw-r--r-- | src/quicktemplates2/qquickoverlay_p_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickoverlay_p_p.h b/src/quicktemplates2/qquickoverlay_p_p.h index fa53d52b..5553bda8 100644 --- a/src/quicktemplates2/qquickoverlay_p_p.h +++ b/src/quicktemplates2/qquickoverlay_p_p.h @@ -70,7 +70,7 @@ public: return overlay->d_func(); } - bool startDrag(QEvent *event); + bool startDrag(QEvent *event, const QPointF &pos); bool handlePress(QQuickItem *source, QEvent *event, QQuickPopup *target); bool handleMove(QQuickItem *source, QEvent *event, QQuickPopup *target); bool handleRelease(QQuickItem *source, QEvent *event, QQuickPopup *target); |