mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Mobile/settings: add button to forget remembered dive computers
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
500f4c44fc
commit
a5b56d0ba0
1 changed files with 35 additions and 0 deletions
|
@ -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 {
|
Rectangle {
|
||||||
color: subsurfaceTheme.darkerPrimaryColor
|
color: subsurfaceTheme.darkerPrimaryColor
|
||||||
height: 1
|
height: 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue