summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-10 15:50:17 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-10 15:57:39 -0800
commit5fe3b7c8c62b1241321a437c5186ddf42cd8d687 (patch)
tree4fbaada98d20e7b36353fc006420ce1d70a7b289
parent669cbdaac58453f3d2c3219269a3eca43e73abea (diff)
downloadsubsurface-5fe3b7c8c62b1241321a437c5186ddf42cd8d687.tar.gz
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>
-rw-r--r--mobile-widgets/qml/Settings.qml38
1 files changed, 38 insertions, 0 deletions
diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml
index b7d5dd0d7..271577eae 100644
--- a/mobile-widgets/qml/Settings.qml
+++ b/mobile-widgets/qml/Settings.qml
@@ -603,6 +603,44 @@ TemplatePage {
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
width: parent.width