diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-01-27 13:11:14 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-01-28 09:29:22 +0000 |
commit | de74c0ee3eab435f2a95849216129ac8e7043972 (patch) | |
tree | acec13d74c8f170d3f3161f87d87c9342f34aae2 /examples | |
parent | 8d8bc174243215715cb0e9143f230158c357ece1 (diff) |
Add Popup::closePolicy
Change-Id: Ie3d0f50a59aeaab36ec388af897cbf2596269ce3
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/controls/gallery/gallery.qml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/controls/gallery/gallery.qml b/examples/controls/gallery/gallery.qml index 7ccadd06..5f80a047 100644 --- a/examples/controls/gallery/gallery.qml +++ b/examples/controls/gallery/gallery.qml @@ -214,12 +214,11 @@ ApplicationWindow { height: settingsColumn.implicitHeight + topPadding + bottomPadding modal: true focus: true - onPressedOutside: close() + closePolicy: Popup.OnEscape | Popup.OnPressOutside contentItem: ColumnLayout { id: settingsColumn spacing: 20 - Keys.onEscapePressed: settingsPopup.close() // TODO: Popup::closePolicy Label { text: "Settings" @@ -291,12 +290,11 @@ ApplicationWindow { y: window.height / 6 width: Math.min(window.width, window.height) / 3 * 2 contentHeight: aboutColumn.height - onPressedOutside: close() + closePolicy: Popup.OnEscape | Popup.OnPressOutside Column { id: aboutColumn spacing: 20 - Keys.onEscapePressed: aboutDialog.close() // TODO: Popup::closePolicy Label { text: "About" |