summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2014-05-27 21:55:29 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-29 08:26:55 -0700
commit45725d1c3036e0df16e437b1c3ac14703f0a780c (patch)
treebd5d4f9328d4904c4a1ce0ef5af1e6483531d901
parent881da272c40ea6a7a67e2b31043689ff2d6b7c02 (diff)
downloadsubsurface-45725d1c3036e0df16e437b1c3ac14703f0a780c.tar.gz
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>
-rw-r--r--qt-ui/profile/profilewidget2.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index 8f2668767..df45628d6 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -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());
}