mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use Planner dialog to add dive
Right now this is just calling the same code and setting a flag whether we are planning or adding a dive. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
40462d5008
commit
882b2c146b
3 changed files with 24 additions and 14 deletions
|
@ -894,6 +894,16 @@ void DivePlannerWidget::lastStopChanged(bool checked)
|
|||
plannerModel->setLastStop6m(checked);
|
||||
}
|
||||
|
||||
void DivePlannerPointsModel::setPlanMode(bool isPlan)
|
||||
{
|
||||
mode = isPlan ? PLAN : ADD;
|
||||
}
|
||||
|
||||
bool DivePlannerPointsModel::isPlanner()
|
||||
{
|
||||
return mode == PLAN;
|
||||
}
|
||||
|
||||
int DivePlannerPointsModel::columnCount(const QModelIndex& parent) const
|
||||
{
|
||||
return COLUMNS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue