mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
VPM-B: Add conservatism levels to the ui. Fix planner settings disabling.
Conservatism level can now be changed from gui, is saved in settings. Also way of disabling the planner settings in the ui was improved to support more deco models and be called at the widget creation. Signed-off-by: Jan Darowski <jan.darowski@gmail.com>
This commit is contained in:
parent
cad866013b
commit
6856e87689
5 changed files with 215 additions and 184 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue