From f7cecf506f8e2ec117fab0bdca978ff86575afcf Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Mon, 16 Jan 2017 18:52:18 +0100 Subject: 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 --- profile-widget/profilewidget2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'profile-widget/profilewidget2.cpp') diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index f0df220e3..e85e41fd2 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -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, -- cgit v1.2.3-70-g09d2