From 8ff949650a24bae1bb52e676a194a2836086c3c2 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 13 Nov 2021 18:55:28 +0100 Subject: [PATCH] profile: vertical center mean depth label This label is put to the right of the corresponding curve, so it should arguably be centered vertically. At least to me this looks more natural. Signed-off-by: Berthold Stoeger --- profile-widget/diveprofileitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile-widget/diveprofileitem.cpp b/profile-widget/diveprofileitem.cpp index ffb54267d..9b808f612 100644 --- a/profile-widget/diveprofileitem.cpp +++ b/profile-widget/diveprofileitem.cpp @@ -517,7 +517,7 @@ void DiveMeanDepthItem::createTextItem(double lastSec, double lastMeanDepth) { qDeleteAll(texts); texts.clear(); - DiveTextItem *text = new DiveTextItem(dpr, diveMeanDepthItemLabelScale, Qt::AlignRight | Qt::AlignTop, this); + DiveTextItem *text = new DiveTextItem(dpr, diveMeanDepthItemLabelScale, Qt::AlignRight | Qt::AlignVCenter, this); text->set(get_depth_string(lrint(lastMeanDepth), true), getColor(TEMP_TEXT)); text->setPos(QPointF(hAxis.posAtValue(lastSec) + dpr, vAxis.posAtValue(lastMeanDepth))); texts.append(text);