mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 06:03:24 +00:00
Set visibility in a saner way
for some reason we did a if(true) setValue(true) else serValue(false) now we just use the value to set the value. =p Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
efa05bc0c9
commit
5da2e667d0
1 changed files with 1 additions and 4 deletions
|
@ -486,10 +486,7 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
|
|||
cylinderPressureAxis->setMaximum(pInfo.maxpressure);
|
||||
|
||||
rulerItem->setPlotInfo(pInfo);
|
||||
if (prefs.show_average_depth)
|
||||
meanDepth->setVisible(true);
|
||||
else
|
||||
meanDepth->setVisible(false);
|
||||
meanDepth->setVisible(prefs.show_average_depth);
|
||||
meanDepth->setMeanDepth(pInfo.meandepth);
|
||||
meanDepth->setLine(0, 0, timeAxis->posAtValue(displayed_dive.duration.seconds), 0);
|
||||
Animations::moveTo(meanDepth,3, profileYAxis->posAtValue(pInfo.meandepth));
|
||||
|
|
Loading…
Add table
Reference in a new issue