mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
8046a05e95
commit
179df1bf80
3 changed files with 0 additions and 16 deletions
|
@ -59,7 +59,6 @@ DiveCartesianAxis::DiveCartesianAxis(Position position, color_index_t gridColor,
|
||||||
min(0),
|
min(0),
|
||||||
max(0),
|
max(0),
|
||||||
interval(1),
|
interval(1),
|
||||||
tick_size(0),
|
|
||||||
textVisibility(true),
|
textVisibility(true),
|
||||||
lineVisibility(true),
|
lineVisibility(true),
|
||||||
labelScale(1.0),
|
labelScale(1.0),
|
||||||
|
@ -300,11 +299,6 @@ QString DiveCartesianAxis::textForValue(double value) const
|
||||||
return QString("%L1").arg(value, 0, 'g', 4);
|
return QString("%L1").arg(value, 0, 'g', 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DiveCartesianAxis::setTickSize(qreal size)
|
|
||||||
{
|
|
||||||
tick_size = size;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DiveCartesianAxis::setTickInterval(double i)
|
void DiveCartesianAxis::setTickInterval(double i)
|
||||||
{
|
{
|
||||||
interval = i;
|
interval = i;
|
||||||
|
|
|
@ -38,7 +38,6 @@ public:
|
||||||
void setMaximum(double maximum);
|
void setMaximum(double maximum);
|
||||||
void setTickInterval(double interval);
|
void setTickInterval(double interval);
|
||||||
void setOrientation(Orientation orientation);
|
void setOrientation(Orientation orientation);
|
||||||
void setTickSize(qreal size);
|
|
||||||
void setFontLabelScale(qreal scale);
|
void setFontLabelScale(qreal scale);
|
||||||
double minimum() const;
|
double minimum() const;
|
||||||
double maximum() const;
|
double maximum() const;
|
||||||
|
@ -71,7 +70,6 @@ protected:
|
||||||
double min;
|
double min;
|
||||||
double max;
|
double max;
|
||||||
double interval;
|
double interval;
|
||||||
double tick_size;
|
|
||||||
QColor textColor;
|
QColor textColor;
|
||||||
bool textVisibility;
|
bool textVisibility;
|
||||||
bool lineVisibility;
|
bool lineVisibility;
|
||||||
|
|
|
@ -80,34 +80,26 @@ ProfileScene::ProfileScene(double dpr, bool printMode, bool isGrayscale) :
|
||||||
profileYAxis->setOrientation(DiveCartesianAxis::TopToBottom);
|
profileYAxis->setOrientation(DiveCartesianAxis::TopToBottom);
|
||||||
profileYAxis->setMinimum(0);
|
profileYAxis->setMinimum(0);
|
||||||
profileYAxis->setTickInterval(M_OR_FT(10, 30));
|
profileYAxis->setTickInterval(M_OR_FT(10, 30));
|
||||||
profileYAxis->setTickSize(0.5);
|
|
||||||
|
|
||||||
timeAxis->setTickSize(-0.5);
|
|
||||||
|
|
||||||
gasYAxis->setOrientation(DiveCartesianAxis::BottomToTop);
|
gasYAxis->setOrientation(DiveCartesianAxis::BottomToTop);
|
||||||
gasYAxis->setTickInterval(1);
|
gasYAxis->setTickInterval(1);
|
||||||
gasYAxis->setTickSize(1);
|
|
||||||
gasYAxis->setMinimum(0);
|
gasYAxis->setMinimum(0);
|
||||||
gasYAxis->setFontLabelScale(0.7);
|
gasYAxis->setFontLabelScale(0.7);
|
||||||
|
|
||||||
#ifndef SUBSURFACE_MOBILE
|
#ifndef SUBSURFACE_MOBILE
|
||||||
heartBeatAxis->setOrientation(DiveCartesianAxis::BottomToTop);
|
heartBeatAxis->setOrientation(DiveCartesianAxis::BottomToTop);
|
||||||
heartBeatAxis->setTickSize(0.2);
|
|
||||||
heartBeatAxis->setTickInterval(10);
|
heartBeatAxis->setTickInterval(10);
|
||||||
heartBeatAxis->setFontLabelScale(0.7);
|
heartBeatAxis->setFontLabelScale(0.7);
|
||||||
|
|
||||||
percentageAxis->setOrientation(DiveCartesianAxis::BottomToTop);
|
percentageAxis->setOrientation(DiveCartesianAxis::BottomToTop);
|
||||||
percentageAxis->setTickSize(0.2);
|
|
||||||
percentageAxis->setTickInterval(10);
|
percentageAxis->setTickInterval(10);
|
||||||
percentageAxis->setFontLabelScale(0.7);
|
percentageAxis->setFontLabelScale(0.7);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
temperatureAxis->setOrientation(DiveCartesianAxis::BottomToTop);
|
temperatureAxis->setOrientation(DiveCartesianAxis::BottomToTop);
|
||||||
temperatureAxis->setTickSize(2);
|
|
||||||
temperatureAxis->setTickInterval(300);
|
temperatureAxis->setTickInterval(300);
|
||||||
|
|
||||||
cylinderPressureAxis->setOrientation(DiveCartesianAxis::BottomToTop);
|
cylinderPressureAxis->setOrientation(DiveCartesianAxis::BottomToTop);
|
||||||
cylinderPressureAxis->setTickSize(2);
|
|
||||||
cylinderPressureAxis->setTickInterval(30000);
|
cylinderPressureAxis->setTickInterval(30000);
|
||||||
|
|
||||||
heartBeatAxis->setTextVisible(true);
|
heartBeatAxis->setTextVisible(true);
|
||||||
|
|
Loading…
Add table
Reference in a new issue