mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Prevent the tank bar from overlaping the temperature graph.
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f559f6c870
commit
8d4a3842ee
1 changed files with 11 additions and 3 deletions
|
@ -359,7 +359,7 @@ void ProfileWidget2::setupItemSizes()
|
|||
|
||||
// Temperature axis config
|
||||
itemPos.temperature.pos.on.setX(3);
|
||||
itemPos.temperature.pos.on.setY(50);
|
||||
itemPos.temperature.pos.on.setY(60);
|
||||
itemPos.temperatureAll.pos.on.setY(51);
|
||||
itemPos.temperature.pos.off.setX(-10);
|
||||
itemPos.temperature.pos.off.setY(40);
|
||||
|
@ -656,7 +656,11 @@ void ProfileWidget2::settingsChanged()
|
|||
}
|
||||
} else {
|
||||
profileYAxis->animateChangeLine(itemPos.depth.expanded);
|
||||
temperatureAxis->setPos(itemPos.temperature.pos.on);
|
||||
if (prefs.tankbar) {
|
||||
temperatureAxis->setPos(itemPos.temperatureAll.pos.on);
|
||||
} else {
|
||||
temperatureAxis->setPos(itemPos.temperature.pos.on);
|
||||
}
|
||||
temperatureAxis->animateChangeLine(itemPos.temperature.expanded);
|
||||
cylinderPressureAxis->animateChangeLine(itemPos.cylinder.expanded);
|
||||
}
|
||||
|
@ -928,7 +932,11 @@ void ProfileWidget2::setProfileState()
|
|||
}
|
||||
} else {
|
||||
profileYAxis->animateChangeLine(itemPos.depth.expanded);
|
||||
temperatureAxis->setPos(itemPos.temperature.pos.on);
|
||||
if (prefs.tankbar) {
|
||||
temperatureAxis->setPos(itemPos.temperatureAll.pos.on);
|
||||
} else {
|
||||
temperatureAxis->setPos(itemPos.temperature.pos.on);
|
||||
}
|
||||
temperatureAxis->animateChangeLine(itemPos.temperature.expanded);
|
||||
cylinderPressureAxis->animateChangeLine(itemPos.cylinder.expanded);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue