From 4b9177c09813cceed0a94c4d766d89657e4708cc Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 11 Sep 2021 22:08:59 +0200 Subject: [PATCH] profile: remove DepthAxis constructor specialization All this did was setting changed to true. Obviously an artifact, since that is done in the constructor of the base class anyway. Remove. Signed-off-by: Berthold Stoeger --- profile-widget/divecartesianaxis.cpp | 7 ------- profile-widget/divecartesianaxis.h | 3 +-- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/profile-widget/divecartesianaxis.cpp b/profile-widget/divecartesianaxis.cpp index 1045ced18..6d47acf5e 100644 --- a/profile-widget/divecartesianaxis.cpp +++ b/profile-widget/divecartesianaxis.cpp @@ -360,13 +360,6 @@ QColor DepthAxis::colorForValue(double) const return QColor(Qt::red); } -DepthAxis::DepthAxis(Position position, color_index_t gridColor, double dpr, - bool printMode, bool isGrayscale, ProfileScene &scene) : - DiveCartesianAxis(position, gridColor, dpr, printMode, isGrayscale, scene) -{ - changed = true; -} - QColor TimeAxis::colorForValue(double) const { return QColor(Qt::blue); diff --git a/profile-widget/divecartesianaxis.h b/profile-widget/divecartesianaxis.h index 41cc6591e..36c6db87e 100644 --- a/profile-widget/divecartesianaxis.h +++ b/profile-widget/divecartesianaxis.h @@ -80,8 +80,7 @@ protected: class DepthAxis : public DiveCartesianAxis { Q_OBJECT public: - DepthAxis(Position position, color_index_t gridColor, double dpr, - bool printMode, bool isGrayscale, ProfileScene &scene); + using DiveCartesianAxis::DiveCartesianAxis; private: QString textForValue(double value) const override; QColor colorForValue(double value) const override;