summaryrefslogtreecommitdiffstats
path: root/qt-models/diveplannermodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/diveplannermodel.cpp')
-rw-r--r--qt-models/diveplannermodel.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp
index 616f1dadc..4a33b15c3 100644
--- a/qt-models/diveplannermodel.cpp
+++ b/qt-models/diveplannermodel.cpp
@@ -401,6 +401,20 @@ void DivePlannerPointsModel::setDecoSac(double sac)
emitDataChanged();
}
+void DivePlannerPointsModel::setSacFactor(double factor)
+{
+ auto planner = SettingsObjectWrapper::instance()->planner_settings;
+ planner->setSacFactor((int) round(factor * 100));
+ emitDataChanged();
+}
+
+void DivePlannerPointsModel::setProblemSolvingTime(int minutes)
+{
+ auto planner = SettingsObjectWrapper::instance()->planner_settings;
+ planner->setProblemSolvingTime(minutes);
+ emitDataChanged();
+}
+
void DivePlannerPointsModel::setGFHigh(const int gfhigh)
{
tempGFHigh = gfhigh;