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. Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5063431263
commit
0a7e673c5f
2 changed files with 14 additions and 0 deletions
|
@ -150,3 +150,13 @@ void plannerShared::set_switch_at_req_stop(bool value)
|
|||
{
|
||||
DivePlannerPointsModel::instance()->setSwitchAtReqStop(value);
|
||||
}
|
||||
|
||||
bool plannerShared::doo2breaks()
|
||||
{
|
||||
return qPrefDivePlanner::doo2breaks();
|
||||
}
|
||||
void plannerShared::set_doo2breaks(bool value)
|
||||
{
|
||||
qPrefDivePlanner::set_doo2breaks(value);
|
||||
DivePlannerPointsModel::instance()->emitDataChanged();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue