diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-08-17 21:45:51 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-08-17 21:45:51 -0700 |
commit | d93984448c3ee1c089c09dcfb9c4b1f38345044c (patch) | |
tree | 2b5d20be9cf5695ea3885cb15b372cd70510b79d /qt-models/diveplannermodel.cpp | |
parent | 2e8286623d3f4e1b8bf3a4d5141cda0839d1d506 (diff) | |
parent | ffe2884f72ace4d04158b72fc806823c87a62e4b (diff) | |
download | subsurface-d93984448c3ee1c089c09dcfb9c4b1f38345044c.tar.gz |
Merge branch 'boyle-ready' of https://github.com/Slagvi/subsurface
Fixed merge conflicts in
deco.c
dive.h
planner.c
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 e82daba11..005061feb 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -397,6 +397,12 @@ void DivePlannerPointsModel::triggerGFLow() } } +void DivePlannerPointsModel::setConservatism(int level) +{ + prefs.conservatism_level = level; + emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS - 1)); +} + void DivePlannerPointsModel::setSurfacePressure(int pressure) { diveplan.surface_pressure = pressure; |