diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-29 20:06:42 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-31 07:44:51 +0900 |
commit | d83c74606d04d6d632552ee9bdf73556a9ed24c5 (patch) | |
tree | ccb299f9b08a7b82a73af2a5cf0ca66b61317aea /mobile-widgets/qml/DivePlannerSetup.qml | |
parent | e9301690ce7bda961bc8852e513c950bef4aeebe (diff) | |
download | subsurface-d83c74606d04d6d632552ee9bdf73556a9ed24c5.tar.gz |
mobile-widgets/qml: add checkbox values
(planning is excluded, due to not finished UI).
Connect all checkboxes with plannerShared.
This change allows live testing and compare with the desktop version.
Signed-off-by: Jan Iversen <jan@casacondor.com>
Diffstat (limited to 'mobile-widgets/qml/DivePlannerSetup.qml')
-rw-r--r-- | mobile-widgets/qml/DivePlannerSetup.qml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DivePlannerSetup.qml b/mobile-widgets/qml/DivePlannerSetup.qml index 4fbb135bb..105ba52ba 100644 --- a/mobile-widgets/qml/DivePlannerSetup.qml +++ b/mobile-widgets/qml/DivePlannerSetup.qml @@ -299,6 +299,10 @@ Kirigami.ScrollablePage { } TemplateCheckBox { text: qsTr("O2 narcotic") + checked: Planner.o2narcotic + onClicked: { + Planner.o2narcotic = checked + } } } } @@ -311,18 +315,38 @@ Kirigami.ScrollablePage { TemplateCheckBox { text: qsTr("Display runtime") + checked: Planner.display_runtime + onClicked: { + Planner.display_runtime = checked + } } TemplateCheckBox { text: qsTr("Display segment duration") + checked: Planner.display_duration + onClicked: { + Planner.display_duration = checked + } } TemplateCheckBox { text: qsTr("Display transitions in deco") + checked: Planner.display_transitions + onClicked: { + Planner.display_transitions = checked + } } TemplateCheckBox { text: qsTr("Verbatim dive plan") + checked: Planner.verbatim_plan + onClicked: { + Planner.verbatim_plan = checked + } } TemplateCheckBox { text: qsTr("Display plan variations") + checked: Planner.display_variations + onClicked: { + Planner.display_variations = checked + } } } } |