mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile/UI: add settings to display profile ceiling
So far only DC provided ceiling information was available and visibility of that was simply inherited via cloud storage from the desktop. With this the user can set both DC reported and calculated ceilings in the advanced settings in the mobile app. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
669cbdaac5
commit
5fe3b7c8c6
1 changed files with 38 additions and 0 deletions
|
@ -602,6 +602,44 @@ TemplatePage {
|
|||
TemplateLine {
|
||||
visible: sectionAdvanced.isExpanded
|
||||
}
|
||||
GridLayout {
|
||||
id: profilePrefs
|
||||
visible: sectionAdvanced.isExpanded
|
||||
width: parent.width
|
||||
columns: 2
|
||||
TemplateLabel {
|
||||
text: qsTr("Profile deco ceiling")
|
||||
font.pointSize: subsurfaceTheme.headingPointSize
|
||||
font.weight: Font.Light
|
||||
Layout.topMargin: Kirigami.Units.largeSpacing
|
||||
Layout.bottomMargin: Kirigami.Units.largeSpacing / 2
|
||||
Layout.columnSpan: 2
|
||||
}
|
||||
TemplateLabel {
|
||||
text: qsTr("Show DC reported ceiling")
|
||||
}
|
||||
SsrfSwitch {
|
||||
checked: PrefTechnicalDetails.dcceiling
|
||||
onClicked: {
|
||||
PrefTechnicalDetails.dcceiling = checked
|
||||
rootItem.settingChanged()
|
||||
}
|
||||
}
|
||||
TemplateLabel {
|
||||
text: qsTr("Show calculated ceiling")
|
||||
}
|
||||
SsrfSwitch {
|
||||
checked: PrefTechnicalDetails.calcceiling
|
||||
onClicked: {
|
||||
PrefTechnicalDetails.calcceiling = checked
|
||||
rootItem.settingsChanged()
|
||||
}
|
||||
}
|
||||
}
|
||||
TemplateLine {
|
||||
visible: sectionAdvanced.isExpanded
|
||||
}
|
||||
|
||||
GridLayout {
|
||||
id: developer
|
||||
visible: sectionAdvanced.isExpanded
|
||||
|
|
Loading…
Add table
Reference in a new issue