Planner: remove infobox overlay and enable calculated ceiling

Make the infobox invisible in planner (it really doesn't provide a lot of
useful info while planning a dive and more likely gets in the way).
Make the calculated ceiling always visible in planner and add mode.

Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Robert C. Helling 2014-05-27 21:55:29 +02:00 committed by Dirk Hohndel
parent 881da272c4
commit 45725d1c30

View file

@ -390,7 +390,7 @@ void ProfileWidget2::plotDives(QList<dive *> dives)
}
// reset some item visibility on printMode changes
toolTipItem->setVisible(!printMode);
toolTipItem->setVisible(!(printMode || currentState == PLAN));
rulerItem->setVisible(prefs.rulergraph && !printMode);
// No need to do this again if we are already showing the same dive
@ -783,6 +783,7 @@ void ProfileWidget2::setAddState()
this, SLOT(pointsRemoved(const QModelIndex &, int, int)));
/* show the same stuff that the profile shows. */
currentState = ADD; /* enable the add state. */
diveCeiling->setVisible(true);
setBackgroundBrush(QColor(Qt::blue).light());
}
@ -811,6 +812,7 @@ void ProfileWidget2::setPlanState()
this, SLOT(pointsRemoved(const QModelIndex &, int, int)));
/* show the same stuff that the profile shows. */
currentState = PLAN; /* enable the add state. */
diveCeiling->setVisible(true);
setBackgroundBrush(QColor(Qt::green).light());
}