diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-10-24 13:41:17 +0200 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2016-10-25 09:00:17 +0000 |
commit | 6f6e073815d5b05aba553b83809fb701541260c6 (patch) | |
tree | 3e6b3cd911d807f42ad23c31290e023b67f815cf /src/quicktemplates2/qquickoverlay_p_p.h | |
parent | 6f076d71e45ffc318169454035297b2882d2a63b (diff) |
Fix popups to close on click outsidev5.7.1
When a popup closes itself on press outside, it accepts the press
event so that it doesn't propagate to other popups or the content
below. We must make sure that such closing popup does not become
the mouse grabber, because it doesn't make sense to route the
subsequent mouse events to the popup that was just closed.
Change-Id: I80c6e26a1d94aa1526a61862f00af2fd0778aa82
Task-number: QTBUG-56697
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickoverlay_p_p.h b/src/quicktemplates2/qquickoverlay_p_p.h index 6201908e..6e72b39a 100644 --- a/src/quicktemplates2/qquickoverlay_p_p.h +++ b/src/quicktemplates2/qquickoverlay_p_p.h @@ -72,6 +72,7 @@ public: void addPopup(QQuickPopup *popup); void removePopup(QQuickPopup *popup); + void setMouseGrabberPopup(QQuickPopup *popup); void popupAboutToShow(); void popupAboutToHide(); |