cleanup: unslotify DiveCartesianAxis::updateTicks

This virtual function is not used as the target of a signal
anywhere, which means that it shouldn't be a slot.

Moreover, mark the one place it is overriden as override.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-12-29 22:18:34 +01:00 committed by Dirk Hohndel
parent 02fbaffe4c
commit f3ac9c96c6

View file

@ -50,8 +50,6 @@ public:
void setLineSize(qreal lineSize); void setLineSize(qreal lineSize);
void setLine(const QLineF& line); void setLine(const QLineF& line);
int unitSystem; int unitSystem;
public
slots:
virtual void updateTicks(color_index_t color = TIME_GRID); virtual void updateTicks(color_index_t color = TIME_GRID);
signals: signals:
@ -94,7 +92,7 @@ class TimeAxis : public DiveCartesianAxis {
Q_OBJECT Q_OBJECT
public: public:
TimeAxis(ProfileWidget2 *widget); TimeAxis(ProfileWidget2 *widget);
void updateTicks(color_index_t color = TIME_GRID); void updateTicks(color_index_t color = TIME_GRID) override;
private: private:
QString textForValue(double value) const override; QString textForValue(double value) const override;
QColor colorForValue(double value) const override; QColor colorForValue(double value) const override;