From b0e46c208dd4fb13d5c3e6010c56cbc50742b4ec Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Mon, 20 Jan 2020 20:10:35 +0100 Subject: mobile: move dive planner notes access to pure interface Make notes rates available to QML through the Backend interface. Remove the corresponding variables from plannerShared. Getters are from prefs. while setters are linked to diveplan model. Remark: signals from qPrefDivePlanner is used, because the diveplanner model sets qPrefDivePlanner but do not issue special signals. Signed-off-by: jan Iversen Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DivePlannerSetup.qml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'mobile-widgets/qml') diff --git a/mobile-widgets/qml/DivePlannerSetup.qml b/mobile-widgets/qml/DivePlannerSetup.qml index ec1e14ca4..870444275 100644 --- a/mobile-widgets/qml/DivePlannerSetup.qml +++ b/mobile-widgets/qml/DivePlannerSetup.qml @@ -331,37 +331,37 @@ Kirigami.ScrollablePage { TemplateCheckBox { text: qsTr("Display runtime") - checked: Planner.display_runtime + checked: Backend.display_runtime onClicked: { - Planner.display_runtime = checked + Backend.display_runtime = checked } } TemplateCheckBox { text: qsTr("Display segment duration") - checked: Planner.display_duration + checked: Backend.display_duration onClicked: { - Planner.display_duration = checked + Backend.display_duration = checked } } TemplateCheckBox { text: qsTr("Display transitions in deco") - checked: Planner.display_transitions + checked: Backend.display_transitions onClicked: { - Planner.display_transitions = checked + Backend.display_transitions = checked } } TemplateCheckBox { text: qsTr("Verbatim dive plan") - checked: Planner.verbatim_plan + checked: Backend.verbatim_plan onClicked: { - Planner.verbatim_plan = checked + Backend.verbatim_plan = checked } } TemplateCheckBox { text: qsTr("Display plan variations") - checked: Planner.display_variations + checked: Backend.display_variations onClicked: { - Planner.display_variations = checked + Backend.display_variations = checked } } } -- cgit v1.2.3-70-g09d2