mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
881da272c4
commit
45725d1c30
1 changed files with 3 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue