summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-22 09:33:20 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-23 11:49:30 -0700
commita5b56d0ba0d2a80f2b5e059af47aa584c7124a99 (patch)
tree601e3c08c0c625ba156a26bd5647ccd453b7f73d /mobile-widgets
parent500f4c44fc9ec5127b7c1d419121518ac6c20ad7 (diff)
downloadsubsurface-a5b56d0ba0d2a80f2b5e059af47aa584c7124a99.tar.gz
Mobile/settings: add button to forget remembered dive computers
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/Settings.qml35
1 files changed, 35 insertions, 0 deletions
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
@@ -339,6 +339,41 @@ Kirigami.ScrollablePage {
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
+ opacity: 0.5
+ Layout.fillWidth: true
+ }
GridLayout {
id: unit_system
columns: 2