aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickpopup_p_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-05-20 15:23:05 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-05-23 14:17:19 +0000
commit93cd723a4a6f479909f9ad89f67b0537874f626f (patch)
tree1e8a61c52c3c5512d00803dae3bb04b58a86bd60 /src/quicktemplates2/qquickpopup_p_p.h
parent0bd08232c5034aec06d5c6554a74c84cb79e53f6 (diff)
Make Overlay.modal and modeless Components
This way we can simply instantiate a visual overlay for each modal or dimming popup without having tricky problems with overlay's stacking order. It makes also sense to not instantiate the overlays for hidden popups. Coincidentally, this change also fixes a problem that the overlay turned out to be _always_ visible since a hidden overlay background was always instantiated no matter if there were open popups, or popups at all. Change-Id: Ieb64a72c827d0a005418027428378ebe04f41117 Task-number: QTBUG-53519 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickpopup_p_p.h')
-rw-r--r--src/quicktemplates2/qquickpopup_p_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickpopup_p_p.h b/src/quicktemplates2/qquickpopup_p_p.h
index 9ea5a7f0..ffe2c2bb 100644
--- a/src/quicktemplates2/qquickpopup_p_p.h
+++ b/src/quicktemplates2/qquickpopup_p_p.h
@@ -204,6 +204,7 @@ public:
qreal contentHeight;
QQuickPopup::ClosePolicy closePolicy;
QQuickItem *parentItem;
+ QQuickItem *dimmer;
QQuickWindow *window;
QQuickTransition *enter;
QQuickTransition *exit;