From 5fe3b7c8c62b1241321a437c5186ddf42cd8d687 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 10 Jan 2021 15:50:17 -0800 Subject: 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 --- mobile-widgets/qml/Settings.qml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'mobile-widgets/qml') 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 @@ -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 -- cgit v1.2.3-70-g09d2