From a5b56d0ba0d2a80f2b5e059af47aa584c7124a99 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 22 Sep 2018 09:33:20 -0700 Subject: Mobile/settings: add button to forget remembered dive computers Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/Settings.qml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml index b7da68eca..6018fed3e 100644 --- a/mobile-widgets/qml/Settings.qml +++ b/mobile-widgets/qml/Settings.qml @@ -333,6 +333,41 @@ Kirigami.ScrollablePage { } } + Rectangle { + color: subsurfaceTheme.darkerPrimaryColor + height: 1 + opacity: 0.5 + Layout.fillWidth: true + } + + GridLayout { + id: divecomputers + columns: 2 + width: parent.width - Kirigami.Units.gridUnit + Kirigami.Heading { + text: qsTr("Dive computers") + color: subsurfaceTheme.textColor + level: 4 + Layout.topMargin: Kirigami.Units.largeSpacing + Layout.bottomMargin: Kirigami.Units.largeSpacing + Layout.columnSpan: 2 + } + Controls.Label { + text: qsTr("Forget remembered dive computers") + Layout.preferredWidth: gridWidth * 0.75 + } + SsrfButton { + id: forgetDCButton + text: qsTr("Forget") + onClicked: { + PrefDiveComputer.vendor1 = "" + PrefDiveComputer.vendor2 = "" + PrefDiveComputer.vendor3 = "" + PrefDiveComputer.vendor4 = "" + } + } + } + Rectangle { color: subsurfaceTheme.darkerPrimaryColor height: 1 -- cgit v1.2.3-70-g09d2