aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/popup
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-07-21 13:36:47 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-07-22 12:14:32 +0000
commit79cb8dcfcd9c1491cd0fa0699a0918e29183f6c7 (patch)
tree02248ad6d37c3dec52b611f56bfe4a042e4c3c86 /tests/auto/popup
parent8231b5b0eb4afa385392fbe0259f9fecdb459907 (diff)
Popups: fix overlay visibility
Make sure popup overlay dimmers gets destroyed when popups are closed, and thus, re-parented out of the window overlay. The window overlay item is hidden when there are no child items, so this fixes the issue that the window overlay item was left visible after closing popups. Change-Id: Id2ffe43b706ffcc5cda83abd75354ef04f893745 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'tests/auto/popup')
-rw-r--r--tests/auto/popup/tst_popup.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/popup/tst_popup.cpp b/tests/auto/popup/tst_popup.cpp
index 3da32407..abebc5d0 100644
--- a/tests/auto/popup/tst_popup.cpp
+++ b/tests/auto/popup/tst_popup.cpp
@@ -134,6 +134,7 @@ void tst_popup::overlay()
QVERIFY(!overlay->isVisible());
popup->setModal(true);
+ popup->setClosePolicy(QQuickPopup::CloseOnReleaseOutside);
popup->open();
QVERIFY(popup->isVisible());
@@ -148,7 +149,7 @@ void tst_popup::overlay()
QCOMPARE(overlayReleasedSignal.count(), 1);
QVERIFY(!popup->isVisible());
- QVERIFY(overlay->isVisible());
+ QVERIFY(!overlay->isVisible());
}
void tst_popup::windowChange()