profile: remove DiveCartesianAxis::tick_size

No user of that. Also remove the setter function.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-08-28 23:44:28 +02:00 committed by Dirk Hohndel
parent 8046a05e95
commit 179df1bf80
3 changed files with 0 additions and 16 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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);