aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2022-03-10 11:19:07 +0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-03-15 05:44:38 +0000
commit440f1d0eb88e5250fa2acf454478a1be979e7c2e (patch)
treee8582dba31ff308eff289d062f5cea2dafd8473c
parent9f7f1e2a2ea776bed46c77de55e23a68ff7c2f84 (diff)
Doc: clarify CloseOnPress/Release* policy behavior
Mention that they don't apply if another popup is clicked. Change-Id: Iaefe987f38897ec683af9f3fe1a21b5c75502fa5 Fixes: QTBUG-101573 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> (cherry picked from commit 90891916a44172b88024516646c4ce6533300126) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/quicktemplates2/qquickpopup.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickpopup.cpp b/src/quicktemplates2/qquickpopup.cpp
index cca53b7d77..d035a98fa3 100644
--- a/src/quicktemplates2/qquickpopup.cpp
+++ b/src/quicktemplates2/qquickpopup.cpp
@@ -2055,6 +2055,11 @@ void QQuickPopup::setScale(qreal scale)
\value Popup.CloseOnEscape The popup will close when the escape key is pressed while the popup
has active focus.
+ The \c {CloseOnPress*} and \c {CloseOnRelease*} policies only apply for events
+ outside of popups. That is, if there are two popups open and the first has
+ \c Popup.CloseOnPressOutside as its policy, clicking on the second popup will
+ not result in the first closing.
+
The default value is \c {Popup.CloseOnEscape | Popup.CloseOnPressOutside}.
This default value may interfere with existing shortcuts in the application
that makes use of the \e Escape key.