diff options
author | Rick Walsh <rickmwalsh@gmail.com> | 2015-06-22 21:48:42 +1000 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-26 06:14:24 -0700 |
commit | 425020d2debd770006594e715b6fed73032a4ea2 (patch) | |
tree | 006e414efbed04725533af740f52bfa584437721 /qt-models/diveplannermodel.cpp | |
parent | cb1b6a3d302070febf09d8963585ac445d3277f4 (diff) | |
download | subsurface-425020d2debd770006594e715b6fed73032a4ea2.tar.gz |
Add only switch at required stop option
Add the option to only switch at required stop to the planner UI. This is not actually used yet.
Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/diveplannermodel.cpp')
-rw-r--r-- | qt-models/diveplannermodel.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index a4ca14715..adbcdba9a 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -490,6 +490,12 @@ void DivePlannerPointsModel::setDropStoneMode(bool value) emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS - 1)); } +void DivePlannerPointsModel::setSwitchAtReqStop(bool value) +{ + prefs.switch_at_req_stop = value; + emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS - 1)); +} + void DivePlannerPointsModel::setMinSwitchDuration(int duration) { prefs.min_switch_duration = duration * 60; |