From f3ac9c96c6664e69546e5c25b745e9b8287be66a Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 29 Dec 2020 22:18:34 +0100 Subject: 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 --- profile-widget/divecartesianaxis.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'profile-widget') 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; -- cgit v1.2.3-70-g09d2