summaryrefslogtreecommitdiff
path: root/src/dialogs/qquickabstractdialog_p.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2015-03-18 17:41:07 +0100
committerShawn Rutledge <shawn.rutledge@digia.com>2015-03-30 14:00:36 +0000
commit5061d101310bd110e86831249b94d137a831d3be (patch)
tree6f051f732557a3df70969dc601bd5ea9567d766d /src/dialogs/qquickabstractdialog_p.h
parent4606c04a689cbc73bc5150f36ad22ce2d6d405ae (diff)
downloadqtquickcontrols-5061d101310bd110e86831249b94d137a831d3be.tar.gz
Dialogs: redo calculations depending on __maximumDimension before show
Once again the old problem recurs that on Android the primaryScreen has invalid geometry at the time the dialog's QML implementation is loaded. So if the loading occurs before the main window is shown, the dialog was resized to 0x0 and stayed that way. The fix is to make __maximumDimension a notifying property and artificially emit a change signal each time before the dialog is shown. Task-number: QTBUG-45092 Change-Id: Ie86eb7f7bd3cbe8401ccc98c9cc8829c788a71dd Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Diffstat (limited to 'src/dialogs/qquickabstractdialog_p.h')
-rw-r--r--src/dialogs/qquickabstractdialog_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dialogs/qquickabstractdialog_p.h b/src/dialogs/qquickabstractdialog_p.h
index 3a9a0cd5..0fe7fa67 100644
--- a/src/dialogs/qquickabstractdialog_p.h
+++ b/src/dialogs/qquickabstractdialog_p.h
@@ -69,7 +69,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)
+ Q_PROPERTY(int __maximumDimension READ __maximumDimension NOTIFY __maximumDimensionChanged)
public:
QQuickAbstractDialog(QObject *parent = 0);
@@ -131,6 +131,7 @@ Q_SIGNALS:
void titleChanged();
void accepted();
void rejected();
+ void __maximumDimensionChanged();
protected Q_SLOTS:
void decorationLoaded();