path: root/src/gui/kernel/qwindow.h
diff options
authorShawn Rutledge <>2018-09-24 14:50:33 +0200
committerShawn Rutledge <>2018-09-27 14:02:07 +0000
commit324e92200fc233d3c6c192856422b519814a03a8 (patch)
tree4858138f2e9c50e7a3bd2cafdfdb7d98d2ac8b9b /src/gui/kernel/qwindow.h
parent706db17d9af2c52e5b3c1c0b01ae52c1650d3c16 (diff)
Make QWindow::transientParent a property
The accessors have existed for a long time, but in Qt Quick it helps to have it available as a property, in case any of the "magic" guesses wrong about the user's intention. [ChangeLog][QtGui][QWindow] QWindow::transientParent is now a property. Task-number: QTBUG-67903 Task-number: QTBUG-52944 Change-Id: Ibf6ed789c4756bd934bdb4620fbcdb5879c3fb17 Reviewed-by: Jan Arve Sæther <>
Diffstat (limited to 'src/gui/kernel/qwindow.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qwindow.h b/src/gui/kernel/qwindow.h
index 36d8e7ad0f..1be3c845fe 100644
--- a/src/gui/kernel/qwindow.h
+++ b/src/gui/kernel/qwindow.h
@@ -123,6 +123,7 @@ class Q_GUI_EXPORT QWindow : public QObject, public QSurface
Q_PROPERTY(Visibility visibility READ visibility WRITE setVisibility NOTIFY visibilityChanged REVISION 1)
Q_PROPERTY(Qt::ScreenOrientation contentOrientation READ contentOrientation WRITE reportContentOrientationChange NOTIFY contentOrientationChanged)
Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity NOTIFY opacityChanged REVISION 1)
+ Q_PRIVATE_PROPERTY(QWindow::d_func(), QWindow* transientParent MEMBER transientParent WRITE setTransientParent NOTIFY transientParentChanged REVISION 13)
enum Visibility {
@@ -336,6 +337,8 @@ Q_SIGNALS:
Q_REVISION(1) void opacityChanged(qreal opacity);
+ Q_REVISION(13) void transientParentChanged(QWindow *transientParent);
virtual void exposeEvent(QExposeEvent *);
virtual void resizeEvent(QResizeEvent *);