summaryrefslogtreecommitdiff
path: root/src/dialogs/qquickabstractdialog_p.h
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@theqtcompany.com>2015-02-25 11:02:19 +0100
committerRichard Moe Gustavsen <richard.gustavsen@theqtcompany.com>2015-03-18 09:18:51 +0000
commit1122dc7e4ccd284b25530a8687ee15497de95129 (patch)
tree7e5f33851bf3fbf9517de3e8d3d76ab6c2183ec2 /src/dialogs/qquickabstractdialog_p.h
parentda508d99d50d27bd234c85dae5f069a1eb26103d (diff)
downloadqtquickcontrols-1122dc7e4ccd284b25530a8687ee15497de95129.tar.gz
Dialogs: if dialog helper fails showing, fall back to use QML
By doing this, we respect if the dialog helper returns false on show, and use QML as fall back if possible. This opens up for the possibility that platforms can offer native dialogs for certain dialog configurations, and otherwise fall back to use QML/widgets when none exists. Change-Id: I7c8c691ff024051ecf3a8d2c91cdd6d55cec5730 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'src/dialogs/qquickabstractdialog_p.h')
-rw-r--r--src/dialogs/qquickabstractdialog_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dialogs/qquickabstractdialog_p.h b/src/dialogs/qquickabstractdialog_p.h
index bb7a5ca8..3a9a0cd5 100644
--- a/src/dialogs/qquickabstractdialog_p.h
+++ b/src/dialogs/qquickabstractdialog_p.h
@@ -159,6 +159,7 @@ protected: // variables for pure-QML implementations only
QRect m_sizeAspiration;
bool m_hasAspiredPosition;
bool m_visibleChangedConnected;
+ bool m_dialogHelperInUse;
static QQmlComponent *m_decorationComponent;