diff options
author | Michael Dippold <michael.dippold@us.thalesgroup.com> | 2017-02-22 20:40:47 -0800 |
---|---|---|
committer | Michael Dippold <michael.dippold@us.thalesgroup.com> | 2017-02-23 21:29:39 +0000 |
commit | ec1f70c4c58b923ff50eb4adc36c88e5a6611281 (patch) | |
tree | a022e77a57f5cdefa871dec2f89ff5732cc9112a /src/quicktemplates2/qquickstackview.cpp | |
parent | bb927cb602bcd7e6ae1e67080d11aa93daeca200 (diff) |
Prevent StackView filtering of UngrabMouse event
Currently the StackView is filtering the UngrabMouse event during
transitions. If a MouseArea is still in the pressed state during
this time it will forever be in the pressed state as the ungrab
event is filtered.
Task-number: QTBUG-59098
Change-Id: I7effdad6a36b64336b4770a1dca61ba47998b787
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickstackview.cpp')
-rw-r--r-- | src/quicktemplates2/qquickstackview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickstackview.cpp b/src/quicktemplates2/qquickstackview.cpp index 2e4d2528..cf2b5a66 100644 --- a/src/quicktemplates2/qquickstackview.cpp +++ b/src/quicktemplates2/qquickstackview.cpp @@ -1001,6 +1001,8 @@ bool QQuickStackView::childMouseEventFilter(QQuickItem *item, QEvent *event) // breaking its state (QTBUG-50305). if (event->type() == QEvent::MouseButtonPress) return true; + if (event->type() == QEvent::UngrabMouse) + return false; QQuickWindow *window = item->window(); return window && !window->mouseGrabberItem(); } |