Don't let the tankbar overlap the tissue heatmap

Shift the position of the tankbar to prevent it from overlapping the tissue heatmap

Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
Joakim Bygdell 2017-01-16 18:52:18 +01:00 committed by Dirk Hohndel
parent dbf1390094
commit f7cecf506f

View file

@ -488,7 +488,7 @@ void ProfileWidget2::setupItemSizes()
itemPos.percentage.expanded.setP1(QPointF(0, 0));
itemPos.percentage.expanded.setP2(QPointF(0, 15));
itemPos.percentageWithTankBar = itemPos.percentage;
itemPos.percentageWithTankBar.expanded.setP2(QPointF(0, 12));
itemPos.percentageWithTankBar.expanded.setP2(QPointF(0, 11.9));
itemPos.dcLabel.on.setX(3);
itemPos.dcLabel.on.setY(100);
@ -496,7 +496,7 @@ void ProfileWidget2::setupItemSizes()
itemPos.dcLabel.off.setY(100);
itemPos.tankBar.on.setX(0);
itemPos.tankBar.on.setY(91.5);
itemPos.tankBar.on.setY(91.95);
}
void ProfileWidget2::setupItem(AbstractProfilePolygonItem *item, DiveCartesianAxis *hAxis,