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 | |
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')
-rw-r--r-- | qt-models/diveplannermodel.cpp | 6 | ||||
-rw-r--r-- | qt-models/diveplannermodel.h | 1 |
2 files changed, 7 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; diff --git a/qt-models/diveplannermodel.h b/qt-models/diveplannermodel.h index a8524393a..b87ed84c3 100644 --- a/qt-models/diveplannermodel.h +++ b/qt-models/diveplannermodel.h @@ -65,6 +65,7 @@ slots: void triggerGFHigh(); void setGFLow(const int ghflow); void triggerGFLow(); + void setConservatism(int level); void setSurfacePressure(int pressure); void setSalinity(int salinity); int getSurfacePressure(); |