aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickapplicationwindow_p.h
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>2015-07-20 17:40:25 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-11-14 00:33:00 +0000
commit0a0902b10d3135b0697741cc9b1f5b1b318eeb1f (patch)
tree4e1eb3116bc1caa7e221970349a130864c0d24d8 /src/templates/qquickapplicationwindow_p.h
parent4cd3cd7cbec2a6713ba146b7036652f6916cab1e (diff)
Introducing Panel type
This is the base type to implement all sorts of Popups and Dialogs. Its main role is to keep the panel contents stacked on top of the application window contents and to ensure mouse and key events are forwarded or blocked depending on the visible panels modality. Currently, it only works with ApplicationWindow, which holds a QQuickOverlay. This special item is where the Panel contents gets reparented when the Panel becomes visible. It's also responsible for filtering the mouse events. Future developements may include adding a 'level' property instead of relying on the item's z value. This may or may not result into having several overlays per window. Change-Id: I18a4b8905e4d5a4a4697642b0553a1f9e86b669f Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickapplicationwindow_p.h')
-rw-r--r--src/templates/qquickapplicationwindow_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/templates/qquickapplicationwindow_p.h b/src/templates/qquickapplicationwindow_p.h
index e23e3ba9..95ea0806 100644
--- a/src/templates/qquickapplicationwindow_p.h
+++ b/src/templates/qquickapplicationwindow_p.h
@@ -62,6 +62,7 @@ class Q_LABSTEMPLATES_EXPORT QQuickApplicationWindow : public QQuickWindowQmlImp
Q_PROPERTY(QQmlListProperty<QObject> data READ contentData FINAL)
Q_PROPERTY(QQuickItem *header READ header WRITE setHeader NOTIFY headerChanged FINAL)
Q_PROPERTY(QQuickItem *footer READ footer WRITE setFooter NOTIFY footerChanged FINAL)
+ Q_PROPERTY(QQuickItem *overlay READ overlay CONSTANT FINAL)
Q_CLASSINFO("DefaultProperty", "data")
public:
@@ -77,6 +78,8 @@ public:
QQuickItem *footer() const;
void setFooter(QQuickItem *footer);
+ QQuickItem *overlay() const;
+
Q_SIGNALS:
void headerChanged();
void footerChanged();