diff options
author | jan Iversen <jan@casacondor.com> | 2020-01-20 20:10:35 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-24 20:20:42 -0800 |
commit | b0e46c208dd4fb13d5c3e6010c56cbc50742b4ec (patch) | |
tree | c60317a91592a80949816e84fc5660d39a61c807 /mobile-widgets/qml/DivePlannerSetup.qml | |
parent | e22943fa21027917cd8d2de98cd13ae7d12d751a (diff) | |
download | subsurface-b0e46c208dd4fb13d5c3e6010c56cbc50742b4ec.tar.gz |
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 <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DivePlannerSetup.qml')
-rw-r--r-- | mobile-widgets/qml/DivePlannerSetup.qml | 20 |
1 files changed, 10 insertions, 10 deletions
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 } } } |