diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2014-10-08 17:39:02 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@digia.com> | 2014-10-13 12:21:06 +0200 |
commit | 35589b1f5a4e86856c7024bbfb067e0835c703f6 (patch) | |
tree | 8975b9c221897dec7d5bc15a6551d399009c002d /src/dialogs/qquickabstractdialog_p.h | |
parent | aecdaf53ceb2f3fbb5b37b1977fbd74bc21bbb4f (diff) | |
download | qtquickcontrols-35589b1f5a4e86856c7024bbfb067e0835c703f6.tar.gz |
Dialogs: added private maximumDimension property for initial size
The Screen.attached property does not know which screen will be used
until the dialog is shown, but we need to know how big the desktop is
before it is shown in order to constrain a reasonable dialog size,
before the Flow lays out the buttons. Otherwise it will be too tall.
Task-number: QTBUG-41734
Change-Id: I44349fab4ad0254d2c6faf30c759fb9e52eebf03
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/dialogs/qquickabstractdialog_p.h')
-rw-r--r-- | src/dialogs/qquickabstractdialog_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dialogs/qquickabstractdialog_p.h b/src/dialogs/qquickabstractdialog_p.h index cbf032a5..164168fe 100644 --- a/src/dialogs/qquickabstractdialog_p.h +++ b/src/dialogs/qquickabstractdialog_p.h @@ -66,6 +66,7 @@ class QQuickAbstractDialog : public QObject Q_PROPERTY(int y READ y WRITE setY NOTIFY geometryChanged) Q_PROPERTY(int width READ width WRITE setWidth NOTIFY geometryChanged) Q_PROPERTY(int height READ height WRITE setHeight NOTIFY geometryChanged) + Q_PROPERTY(int __maximumDimension READ __maximumDimension CONSTANT) public: QQuickAbstractDialog(QObject *parent = 0); @@ -80,6 +81,7 @@ public: int y() const; int width() const; int height() const; + int __maximumDimension() const; virtual void setVisible(bool v); virtual void setModality(Qt::WindowModality m); |