From 2615ba02bb547b8b92c7a5ae926230bee6bce4c2 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 1 Sep 2021 20:59:42 +0200 Subject: [PATCH] profile: remove DiveCartesianAxis::setColor() and setTextColor() These functions had no users. Signed-off-by: Berthold Stoeger --- profile-widget/divecartesianaxis.cpp | 14 -------------- profile-widget/divecartesianaxis.h | 3 --- 2 files changed, 17 deletions(-) diff --git a/profile-widget/divecartesianaxis.cpp b/profile-widget/divecartesianaxis.cpp index 6a1a13692..78ff7fcee 100644 --- a/profile-widget/divecartesianaxis.cpp +++ b/profile-widget/divecartesianaxis.cpp @@ -45,11 +45,6 @@ void DiveCartesianAxis::setMinimum(double minimum) changed = true; } -void DiveCartesianAxis::setTextColor(const QColor &color) -{ - textColor = color; -} - DiveCartesianAxis::DiveCartesianAxis(Position position, color_index_t gridColor, double dpr, bool printMode, ProfileScene &scene) : printMode(printMode), position(position), @@ -365,15 +360,6 @@ std::pair DiveCartesianAxis::screenMinMax() const : std::make_pair(rect.top(), rect.bottom()); } -void DiveCartesianAxis::setColor(const QColor &color) -{ - QPen defaultPen = gridPen(); - defaultPen.setColor(color); - defaultPen.setJoinStyle(Qt::RoundJoin); - defaultPen.setCapStyle(Qt::RoundCap); - setPen(defaultPen); -} - QString DepthAxis::textForValue(double value) const { if (value == 0) diff --git a/profile-widget/divecartesianaxis.h b/profile-widget/divecartesianaxis.h index 9880bb4b5..604a98e47 100644 --- a/profile-widget/divecartesianaxis.h +++ b/profile-widget/divecartesianaxis.h @@ -44,8 +44,6 @@ public: std::pair screenMinMax() const; qreal valueAt(const QPointF &p) const; qreal posAtValue(qreal value) const; - void setColor(const QColor &color); - void setTextColor(const QColor &color); void animateChangeLine(const QRectF &rect, int animSpeed); void setTextVisible(bool arg1); void setLinesVisible(bool arg1); @@ -71,7 +69,6 @@ protected: double min; double max; double interval; - QColor textColor; bool textVisibility; bool lineVisibility; double labelScale;