summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-21 09:54:43 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-10 09:25:57 -0700
commit289d4512947a6ce40fb4a9f6c6af710d1a0fea25 (patch)
treec10f340cf1b592c5234b7c54b9a9c7ffa3b94318 /mobile-widgets/qml
parentffdcc8bf307e73f8896f219973a27ce3c5f44ed1 (diff)
downloadsubsurface-289d4512947a6ce40fb4a9f6c6af710d1a0fea25.tar.gz
mobile UI: fix autoclose of context drawer
The default policy closes the context drawer if there is a button release outside the context drawer area. That messes with the intended UI. For us a much more useful behavior is to have the next click outside of the drawer close the drawer. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/main.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index f9895692f..2b6eb5d6e 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -9,6 +9,7 @@ import QtQuick.Window 2.2
import org.subsurfacedivelog.mobile 1.0
import org.kde.kirigami 2.4 as Kirigami
import QtGraphicalEffects 1.0
+import QtQuick.Templates 2.0 as QtQuickTemplates
Kirigami.ApplicationWindow {
id: rootItem
@@ -142,6 +143,8 @@ Kirigami.ApplicationWindow {
}
contextDrawer: Kirigami.ContextDrawer {
+ id: contextDrawer
+ closePolicy: QtQuickTemplates.Popup.CloseOnPressOutside
}
globalDrawer: Kirigami.GlobalDrawer {