profile: set DiveCartesianAxis::fontLabelScale in constructor

This never changes, no need for the complexities of a setter
function.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-09-11 22:14:45 +02:00 committed by Dirk Hohndel
parent 4b9177c098
commit f19ab2e4fd
3 changed files with 13 additions and 23 deletions

View file

@ -33,12 +33,11 @@ public:
Left, Right, Bottom
};
DiveCartesianAxis(Position position, color_index_t gridColor, double dpr,
bool printMode, bool isGrayscale, ProfileScene &scene);
double labelScale, bool printMode, bool isGrayscale, ProfileScene &scene);
~DiveCartesianAxis();
void setBounds(double min, double max);
void setTickInterval(double interval);
void setOrientation(Orientation orientation);
void setFontLabelScale(qreal scale);
double minimum() const;
double maximum() const;
std::pair<double, double> screenMinMax() const;
@ -108,7 +107,7 @@ class PartialGasPressureAxis : public DiveCartesianAxis {
Q_OBJECT
public:
PartialGasPressureAxis(const DivePlotDataModel &model, Position position, color_index_t gridColor,
double dpr, bool printMode, bool isGrayscale, ProfileScene &scene);
double dpr, double labelScale, bool printMode, bool isGrayscale, ProfileScene &scene);
void update(int animSpeed);
double width() const;
private: