aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-12-29 22:18:34 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-10 15:57:39 -0800
commitf3ac9c96c6664e69546e5c25b745e9b8287be66a (patch)
treedaaf881ad6f1405e8f25160989dd57f8a4adef7a
parent02fbaffe4c5c4e60c2b84b71f4f4b00ecb78ef9f (diff)
downloadsubsurface-f3ac9c96c6664e69546e5c25b745e9b8287be66a.tar.gz
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>
-rw-r--r--profile-widget/divecartesianaxis.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/profile-widget/divecartesianaxis.h b/profile-widget/divecartesianaxis.h
index a72e53f6c..1ea623649 100644
--- a/profile-widget/divecartesianaxis.h
+++ b/profile-widget/divecartesianaxis.h
@@ -50,8 +50,6 @@ public:
void setLineSize(qreal lineSize);
void setLine(const QLineF& line);
int unitSystem;
-public
-slots:
virtual void updateTicks(color_index_t color = TIME_GRID);
signals:
@@ -94,7 +92,7 @@ class TimeAxis : public DiveCartesianAxis {
Q_OBJECT
public:
TimeAxis(ProfileWidget2 *widget);
- void updateTicks(color_index_t color = TIME_GRID);
+ void updateTicks(color_index_t color = TIME_GRID) override;
private:
QString textForValue(double value) const override;
QColor colorForValue(double value) const override;