aboutsummaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefDivePlanner.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-07 09:06:00 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-07 14:37:18 -0700
commit2ecbea3d24529b9776acb620c82af04a076b817f (patch)
tree0b0fc4eec864ff79db095d775341085cb1315895 /core/settings/qPrefDivePlanner.cpp
parentdb57a633d587444a7196c8d4274b8f327e77ceba (diff)
downloadsubsurface-2ecbea3d24529b9776acb620c82af04a076b817f.tar.gz
qPref: use helper function to ensure key/name grouping
We had a couple of instances of names being incorrectly merged with their group, this should handle that better. It's a bit of a big hammer to use, but it seems to work (and it makes it easy to then git grep for cases that don't use the new helper function. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/settings/qPrefDivePlanner.cpp')
-rw-r--r--core/settings/qPrefDivePlanner.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/core/settings/qPrefDivePlanner.cpp b/core/settings/qPrefDivePlanner.cpp
index 02e39f535..78ee53111 100644
--- a/core/settings/qPrefDivePlanner.cpp
+++ b/core/settings/qPrefDivePlanner.cpp
@@ -45,51 +45,51 @@ void qPrefDivePlanner::loadSync(bool doSync)
disk_verbatim_plan(doSync);
}
-HANDLE_PREFERENCE_INT(DivePlanner, "/ascratelast6m", ascratelast6m);
+HANDLE_PREFERENCE_INT(DivePlanner, "ascratelast6m", ascratelast6m);
-HANDLE_PREFERENCE_INT(DivePlanner, "/ascratestops", ascratestops);
+HANDLE_PREFERENCE_INT(DivePlanner, "ascratestops", ascratestops);
-HANDLE_PREFERENCE_INT(DivePlanner, "/ascrate50", ascrate50);
+HANDLE_PREFERENCE_INT(DivePlanner, "ascrate50", ascrate50);
-HANDLE_PREFERENCE_INT(DivePlanner, "/ascrate75", ascrate75);
+HANDLE_PREFERENCE_INT(DivePlanner, "ascrate75", ascrate75);
-HANDLE_PREFERENCE_STRUCT(DivePlanner, depth_t, "/bestmixend", bestmixend, mm);
+HANDLE_PREFERENCE_STRUCT(DivePlanner, depth_t, "bestmixend", bestmixend, mm);
-HANDLE_PREFERENCE_INT(DivePlanner, "/bottompo2", bottompo2);
+HANDLE_PREFERENCE_INT(DivePlanner, "bottompo2", bottompo2);
-HANDLE_PREFERENCE_INT(DivePlanner, "/bottomsac", bottomsac);
+HANDLE_PREFERENCE_INT(DivePlanner, "bottomsac", bottomsac);
-HANDLE_PREFERENCE_INT(DivePlanner, "/decopo2", decopo2);
+HANDLE_PREFERENCE_INT(DivePlanner, "decopo2", decopo2);
-HANDLE_PREFERENCE_INT(DivePlanner, "/decosac", decosac);
+HANDLE_PREFERENCE_INT(DivePlanner, "decosac", decosac);
-HANDLE_PREFERENCE_INT(DivePlanner, "/descrate", descrate);
+HANDLE_PREFERENCE_INT(DivePlanner, "descrate", descrate);
-HANDLE_PREFERENCE_BOOL(DivePlanner, "/display_duration", display_duration);
+HANDLE_PREFERENCE_BOOL(DivePlanner, "display_duration", display_duration);
-HANDLE_PREFERENCE_BOOL(DivePlanner, "/display_runtime", display_runtime);
+HANDLE_PREFERENCE_BOOL(DivePlanner, "display_runtime", display_runtime);
-HANDLE_PREFERENCE_BOOL(DivePlanner, "/display_transitions", display_transitions);
-HANDLE_PREFERENCE_BOOL(DivePlanner, "/display_variations", display_variations);
+HANDLE_PREFERENCE_BOOL(DivePlanner, "display_transitions", display_transitions);
+HANDLE_PREFERENCE_BOOL(DivePlanner, "display_variations", display_variations);
-HANDLE_PREFERENCE_BOOL(DivePlanner, "/doo2breaks", doo2breaks);
+HANDLE_PREFERENCE_BOOL(DivePlanner, "doo2breaks", doo2breaks);
-HANDLE_PREFERENCE_BOOL(DivePlanner, "/drop_stone_mode", drop_stone_mode);
+HANDLE_PREFERENCE_BOOL(DivePlanner, "drop_stone_mode", drop_stone_mode);
-HANDLE_PREFERENCE_BOOL(DivePlanner, "/last_stop", last_stop);
+HANDLE_PREFERENCE_BOOL(DivePlanner, "last_stop", last_stop);
-HANDLE_PREFERENCE_INT(DivePlanner, "/min_switch_duration", min_switch_duration);
+HANDLE_PREFERENCE_INT(DivePlanner, "min_switch_duration", min_switch_duration);
-HANDLE_PREFERENCE_ENUM(DivePlanner, deco_mode, "/deco_mode", planner_deco_mode);
+HANDLE_PREFERENCE_ENUM(DivePlanner, deco_mode, "deco_mode", planner_deco_mode);
-HANDLE_PREFERENCE_INT(DivePlanner, "/problemsolvingtime", problemsolvingtime);
+HANDLE_PREFERENCE_INT(DivePlanner, "problemsolvingtime", problemsolvingtime);
-HANDLE_PREFERENCE_INT(DivePlanner, "/reserve_gas", reserve_gas);
+HANDLE_PREFERENCE_INT(DivePlanner, "reserve_gas", reserve_gas);
-HANDLE_PREFERENCE_INT(DivePlanner, "/sacfactor", sacfactor);
+HANDLE_PREFERENCE_INT(DivePlanner, "sacfactor", sacfactor);
-HANDLE_PREFERENCE_BOOL(DivePlanner, "/safetystop", safetystop);
+HANDLE_PREFERENCE_BOOL(DivePlanner, "safetystop", safetystop);
-HANDLE_PREFERENCE_BOOL(DivePlanner, "/switch_at_req_stop", switch_at_req_stop);
+HANDLE_PREFERENCE_BOOL(DivePlanner, "switch_at_req_stop", switch_at_req_stop);
-HANDLE_PREFERENCE_BOOL(DivePlanner, "/verbatim_plan", verbatim_plan);
+HANDLE_PREFERENCE_BOOL(DivePlanner, "verbatim_plan", verbatim_plan);