mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Planner: add best mix EAD preference
Add best mix EAD preference and UI, along with a tooltip describing what it does Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
67dda48c88
commit
9b29173363
8 changed files with 62 additions and 4 deletions
|
@ -915,6 +915,11 @@ int DivePlannerSettings::decopo2() const
|
|||
return prefs.decopo2;
|
||||
}
|
||||
|
||||
int DivePlannerSettings::bestmixead() const
|
||||
{
|
||||
return prefs.bestmixead;
|
||||
}
|
||||
|
||||
int DivePlannerSettings::reserveGas() const
|
||||
{
|
||||
return prefs.reserve_gas;
|
||||
|
@ -1089,6 +1094,15 @@ void DivePlannerSettings::setDecopo2(int value)
|
|||
emit decopo2Changed(value);
|
||||
}
|
||||
|
||||
void DivePlannerSettings::setBestmixead(int value)
|
||||
{
|
||||
QSettings s;
|
||||
s.beginGroup(group);
|
||||
s.setValue("bestmixead", value);
|
||||
prefs.bestmixead = value;
|
||||
emit bestmixeadChanged(value);
|
||||
}
|
||||
|
||||
void DivePlannerSettings::setReserveGas(int value)
|
||||
{
|
||||
QSettings s;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue