profile: remove text related code in DivePercentageItem

This never sets any text.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-08-12 23:18:23 +02:00 committed by Dirk Hohndel
parent 8343691a38
commit 5540471ce4

View file

@ -258,9 +258,6 @@ void DivePercentageItem::replot(const dive *d, bool)
colors.push_back(ColorScale(value, inert));
}
setPolygon(poly);
if (texts.count())
texts.last()->setAlignment(Qt::AlignLeft | Qt::AlignBottom);
}
QColor DivePercentageItem::ColorScale(double value, int inert)