cleanup: remove DiveCartesianAxis::fontLabelScale accessor

This was only used internally - there is no point in an
accessor function. It only makes grepping more complicated.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-06-02 11:18:18 +02:00 committed by Dirk Hohndel
parent a14f740df0
commit d725170914
2 changed files with 1 additions and 7 deletions

View file

@ -202,7 +202,7 @@ void DiveCartesianAxis::updateTicks(color_index_t color)
DiveTextItem *label = new DiveTextItem(this);
label->setText(textForValue(currValueText));
label->setBrush(colorForValue(currValueText));
label->setScale(fontLabelScale());
label->setScale(labelScale);
label->setZValue(1);
labels.push_back(label);
if (orientation == RightToLeft || orientation == LeftToRight) {
@ -333,11 +333,6 @@ double DiveCartesianAxis::minimum() const
return min;
}
double DiveCartesianAxis::fontLabelScale() const
{
return labelScale;
}
void DiveCartesianAxis::setColor(const QColor &color)
{
QPen defaultPen = gridPen();

View file

@ -39,7 +39,6 @@ public:
void setFontLabelScale(qreal scale);
double minimum() const;
double maximum() const;
double fontLabelScale() const;
qreal valueAt(const QPointF &p) const;
qreal posAtValue(qreal value) const;
void setColor(const QColor &color);