From b834f742994e5dce69c3fdc161099f2ed20deff9 Mon Sep 17 00:00:00 2001 From: Vladimir Moolle Date: Sun, 27 Dec 2015 21:13:31 +0300 Subject: Android: fix Dialog window decorations' dismiss-on-click behavior This fixes the case when a modal dialog is instantiated in a visible state, which often means, the window decoration component has not been loaded yet. Previously, this led to dismissOnOuterClick property in DefaultWindowDecoration keeping its initial value of "true" and thus allowing dismissing the dialog via an outside click *the first time the dialog was hidden* (next times, the property would get updated and the behavior would be correct). Task-number: QTBUG-47369 Change-Id: I24c7c8a1eb785203a3b3f1d889b7e22480ea952f Reviewed-by: Mitch Curtis --- src/dialogs/qquickabstractdialog_p.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/dialogs/qquickabstractdialog_p.h') diff --git a/src/dialogs/qquickabstractdialog_p.h b/src/dialogs/qquickabstractdialog_p.h index 0fe7fa67..f153fb83 100644 --- a/src/dialogs/qquickabstractdialog_p.h +++ b/src/dialogs/qquickabstractdialog_p.h @@ -152,7 +152,9 @@ protected: bool m_visible; Qt::WindowModality m_modality; -protected: // variables for pure-QML implementations only +protected: // variables and methods for pure-QML implementations only + void setDecorationDismissBehavior(); + QQuickItem *m_contentItem; QWindow *m_dialogWindow; QQuickItem *m_windowDecoration; -- cgit v1.2.1