From 179df1bf809a9973a721eec2ffc06ae741751e14 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 28 Aug 2021 23:44:28 +0200 Subject: [PATCH] profile: remove DiveCartesianAxis::tick_size No user of that. Also remove the setter function. Signed-off-by: Berthold Stoeger --- profile-widget/divecartesianaxis.cpp | 6 ------ profile-widget/divecartesianaxis.h | 2 -- profile-widget/profilescene.cpp | 8 -------- 3 files changed, 16 deletions(-) diff --git a/profile-widget/divecartesianaxis.cpp b/profile-widget/divecartesianaxis.cpp index ef7bcf585..7b0d650be 100644 --- a/profile-widget/divecartesianaxis.cpp +++ b/profile-widget/divecartesianaxis.cpp @@ -59,7 +59,6 @@ DiveCartesianAxis::DiveCartesianAxis(Position position, color_index_t gridColor, min(0), max(0), interval(1), - tick_size(0), textVisibility(true), lineVisibility(true), labelScale(1.0), @@ -300,11 +299,6 @@ QString DiveCartesianAxis::textForValue(double value) const return QString("%L1").arg(value, 0, 'g', 4); } -void DiveCartesianAxis::setTickSize(qreal size) -{ - tick_size = size; -} - void DiveCartesianAxis::setTickInterval(double i) { interval = i; diff --git a/profile-widget/divecartesianaxis.h b/profile-widget/divecartesianaxis.h index e067d30e0..122bec3cd 100644 --- a/profile-widget/divecartesianaxis.h +++ b/profile-widget/divecartesianaxis.h @@ -38,7 +38,6 @@ public: void setMaximum(double maximum); void setTickInterval(double interval); void setOrientation(Orientation orientation); - void setTickSize(qreal size); void setFontLabelScale(qreal scale); double minimum() const; double maximum() const; @@ -71,7 +70,6 @@ protected: double min; double max; double interval; - double tick_size; QColor textColor; bool textVisibility; bool lineVisibility; diff --git a/profile-widget/profilescene.cpp b/profile-widget/profilescene.cpp index b8b9b4fe1..6f6d9de9e 100644 --- a/profile-widget/profilescene.cpp +++ b/profile-widget/profilescene.cpp @@ -80,34 +80,26 @@ ProfileScene::ProfileScene(double dpr, bool printMode, bool isGrayscale) : profileYAxis->setOrientation(DiveCartesianAxis::TopToBottom); profileYAxis->setMinimum(0); profileYAxis->setTickInterval(M_OR_FT(10, 30)); - profileYAxis->setTickSize(0.5); - - timeAxis->setTickSize(-0.5); gasYAxis->setOrientation(DiveCartesianAxis::BottomToTop); gasYAxis->setTickInterval(1); - gasYAxis->setTickSize(1); gasYAxis->setMinimum(0); gasYAxis->setFontLabelScale(0.7); #ifndef SUBSURFACE_MOBILE heartBeatAxis->setOrientation(DiveCartesianAxis::BottomToTop); - heartBeatAxis->setTickSize(0.2); heartBeatAxis->setTickInterval(10); heartBeatAxis->setFontLabelScale(0.7); percentageAxis->setOrientation(DiveCartesianAxis::BottomToTop); - percentageAxis->setTickSize(0.2); percentageAxis->setTickInterval(10); percentageAxis->setFontLabelScale(0.7); #endif temperatureAxis->setOrientation(DiveCartesianAxis::BottomToTop); - temperatureAxis->setTickSize(2); temperatureAxis->setTickInterval(300); cylinderPressureAxis->setOrientation(DiveCartesianAxis::BottomToTop); - cylinderPressureAxis->setTickSize(2); cylinderPressureAxis->setTickInterval(30000); heartBeatAxis->setTextVisible(true);