make pinch in calendar work again

work around https://bugreports.qt.io/browse/QTBUG-76569
with an empty mousearea on top
This commit is contained in:
Marco Martin 2019-06-21 17:18:05 +02:00
parent eddc6dec69
commit 9f04ae48e2

View File

@ -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