on xenial help sign in
replace the popover's integrated InverseMouseArea with our own, not covering the header's elements
commit19ad31dff99c4b10550d9629ceea5edddab4108a authorMichael Zanetti <michael.zanetti@canonical.com> dateThu 3 Jul 2014, 12:40 (12 years ago) parent82cb03b
1 file changed+9
qml/Components/PageHeader.qml+9
qml/Components/PageHeader.qml+9
@@ -81,6 +81,14 @@ Item {
8181 }
8282 }
8383
84+ InverseMouseArea {
85+ anchors.fill: parent
86+ visible: headerContainer.popover !== null
87+ onPressed: {
88+ PopupUtils.close(headerContainer.popover)
89+ }
90+ }
91+
8492 Flickable {
8593 id: headerContainer
8694 objectName: "headerContainer"
@@ -244,6 +252,7 @@ Item {
244252 id: popoverComponent
245253 Popover {
246254 id: popover
255+ autoClose: false
247256
248257 Component.onDestruction: {
249258 headerContainer.popover = null