mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fixed item visibility on emptyState after being on profileState.
Background was not correctly back to it's original position and a few other items kept their visibility when it shouldn't. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
cafc7e4b13
commit
bb71707321
2 changed files with 7 additions and 5 deletions
|
@ -147,6 +147,7 @@ void ProfileWidget2::setupItemOnScene()
|
|||
|
||||
cartesianPlane->setBottomAxis(timeAxis);
|
||||
cartesianPlane->setLeftAxis(profileYAxis);
|
||||
cartesianPlane->setZValue(-1);
|
||||
|
||||
diveComputerText->setAlignment(Qt::AlignRight | Qt::AlignBottom);
|
||||
diveComputerText->setBrush(getColor(TIME_TEXT));
|
||||
|
@ -440,14 +441,15 @@ void ProfileWidget2::setEmptyState()
|
|||
gasYAxis->setPos(itemPos.partialgas.pos.off);
|
||||
timeAxis->setPos(itemPos.time.pos.off);
|
||||
background->setY( itemPos.background.on.y());
|
||||
background->setVisible(true);
|
||||
toolTipItem->setVisible(false);
|
||||
temperatureAxis->setPos(itemPos.temperature.pos.off);
|
||||
cylinderPressureAxis->setPos(itemPos.cylinder.pos.off);
|
||||
cartesianPlane->setVisible(false);
|
||||
meanDepth->setVisible(false);
|
||||
diveComputerText->setVisible(false);
|
||||
diveCeiling->setVisible(false);
|
||||
reportedCeiling->setVisible(false);
|
||||
cartesianPlane->setVisible(false);
|
||||
Q_FOREACH(DiveCalculatedTissue *tissue, allTissues){
|
||||
tissue->setVisible(false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue