diff options
Diffstat (limited to 'backend-shared/plannershared.cpp')
-rw-r--r-- | backend-shared/plannershared.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/backend-shared/plannershared.cpp b/backend-shared/plannershared.cpp index d5b5156ab..24ba7aae9 100644 --- a/backend-shared/plannershared.cpp +++ b/backend-shared/plannershared.cpp @@ -160,3 +160,13 @@ void plannerShared::set_doo2breaks(bool value) qPrefDivePlanner::set_doo2breaks(value); DivePlannerPointsModel::instance()->emitDataChanged(); } + +int plannerShared::min_switch_duration() +{ + return qPrefDivePlanner::min_switch_duration() / 60; +} +void plannerShared::set_min_switch_duration(int value) +{ + // NO conversion, this is done in the planner model. + DivePlannerPointsModel::instance()->setMinSwitchDuration(value); +} |