From 9f04ae48e2c402d919f0d6532c54213a2d9eb6f5 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 21 Jun 2019 17:18:05 +0200 Subject: [PATCH] make pinch in calendar work again work around https://bugreports.qt.io/browse/QTBUG-76569 with an empty mousearea on top --- src/declarativeimports/calendar/qml/MonthView.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/declarativeimports/calendar/qml/MonthView.qml b/src/declarativeimports/calendar/qml/MonthView.qml index cc99ccc8e..d4ef90876 100644 --- a/src/declarativeimports/calendar/qml/MonthView.qml +++ b/src/declarativeimports/calendar/qml/MonthView.qml @@ -166,6 +166,16 @@ PinchArea { } } + // NOTE: this MouseArea is a workaround on a PinchArea quirk: + // When the pich is done spanning multiple child mouseareas it on't work: + // a MouseArea on top of all the child mouseareas that just refuses events makes the pincharea work. + // BUG: https://bugreports.qt.io/browse/QTBUG-76569 + MouseArea { + anchors.fill: parent + z: 1 + onPressed: mouse.accepted = false + } + StackView { id: stack