mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
plannerShared: add variables that reference qPrefDiveplanner
These are simple pass-through functions (normally optimized away by the compiler), and serve to make a consistent backend interface which have a simpler use especially in QML. Variables: dobailout Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b877dd973c
commit
8d322218a8
2 changed files with 14 additions and 0 deletions
|
@ -113,3 +113,13 @@ void plannerShared::set_vpmb_conservatism(int value)
|
|||
{
|
||||
DivePlannerPointsModel::instance()->setVpmbConservatism(value);
|
||||
}
|
||||
|
||||
bool plannerShared::dobailout()
|
||||
{
|
||||
return qPrefDivePlanner::dobailout();
|
||||
}
|
||||
void plannerShared::set_dobailout(bool value)
|
||||
{
|
||||
qPrefDivePlanner::set_dobailout(value);
|
||||
DivePlannerPointsModel::instance()->emitDataChanged();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue