aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickoverlay.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-09-03 19:47:35 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-09-05 16:35:54 +0000
commit5f9f81a1d43fd840d37982aadbe49f7343c3cbaa (patch)
tree555ab461a281fda7c344a01360037517aa901d7b /src/quicktemplates2/qquickoverlay.cpp
parentaa4964843f2faca2d52469edc2ba899f9b11e15c (diff)
QQuickOverlay: keep track of all popups
Required by the subsequent patches. Done separately keep the other patches smaller and easier to review. Change-Id: I60212451cf53443ae7abd58b8eaad94b66984e03 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickoverlay.cpp')
-rw-r--r--src/quicktemplates2/qquickoverlay.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickoverlay.cpp b/src/quicktemplates2/qquickoverlay.cpp
index e98544cd..ae90a5f8 100644
--- a/src/quicktemplates2/qquickoverlay.cpp
+++ b/src/quicktemplates2/qquickoverlay.cpp
@@ -175,6 +175,16 @@ QQuickOverlayPrivate::QQuickOverlayPrivate() :
{
}
+void QQuickOverlayPrivate::addPopup(QQuickPopup *popup)
+{
+ allPopups += popup;
+}
+
+void QQuickOverlayPrivate::removePopup(QQuickPopup *popup)
+{
+ allPopups.removeOne(popup);
+}
+
QQuickOverlay::QQuickOverlay(QQuickItem *parent)
: QQuickItem(*(new QQuickOverlayPrivate), parent)
{