mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
When manually adding a dive, start with a simple dive
This is much friendlier than just showing an empty profile. I picked a nice and simple three level dive. 25 minutes at 18m, 15 minutes at 9m, and a safety stop. Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e04acd4189
commit
5f4aec867e
3 changed files with 12 additions and 0 deletions
|
@ -400,6 +400,16 @@ void DivePlannerGraphics::mouseDoubleClickEvent(QMouseEvent* event)
|
|||
plannerModel->addStop(meters * 1000, minutes * 60, tr("Air"), 0);
|
||||
}
|
||||
|
||||
void DivePlannerPointsModel::createSimpleDive()
|
||||
{
|
||||
plannerModel->addStop(18000, 1 * 60, tr("Air"), 0);
|
||||
plannerModel->addStop(18000, 25 * 60, tr("Air"), 0);
|
||||
plannerModel->addStop(9000, 26 * 60, tr("Air"), 0);
|
||||
plannerModel->addStop(9000, 41 * 60, tr("Air"), 0);
|
||||
plannerModel->addStop(5000, 42 * 60, tr("Air"), 0);
|
||||
plannerModel->addStop(5000, 45 * 60, tr("Air"), 0);
|
||||
}
|
||||
|
||||
void DivePlannerGraphics::prepareSelectGas()
|
||||
{
|
||||
currentGasChoice = static_cast<Button*>(sender());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue