profile: rename printFontScale to dpr (device pixel ratio)

The printFontScale is used to scale up fonts (and icons) when
rendering to high-DPI devices. With absolute scaling, this
will also be used to scale the size of different chart
regions, line thickness, etc. Therefore, give it an more
appropriate name. "Device pixel ratio", which is a well
established term, seems to appropriately describe the
concept.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-08-09 16:48:08 +02:00 committed by Dirk Hohndel
parent d28f4d5347
commit f713858ba4
15 changed files with 97 additions and 98 deletions

View file

@ -29,7 +29,7 @@ public:
LeftToRight,
RightToLeft
};
DiveCartesianAxis(double fontPrintScale, bool printMode, ProfileScene &scene);
DiveCartesianAxis(double dpr, bool printMode, ProfileScene &scene);
~DiveCartesianAxis();
void setMinimum(double minimum);
void setMaximum(double maximum);
@ -70,13 +70,13 @@ protected:
double labelScale;
qreal line_size;
bool changed;
double fontPrintScale;
double dpr;
};
class DepthAxis : public DiveCartesianAxis {
Q_OBJECT
public:
DepthAxis(double fontPrintScale, bool printMode, ProfileScene &scene);
DepthAxis(double dpr, bool printMode, ProfileScene &scene);
private:
QString textForValue(double value) const override;
QColor colorForValue(double value) const override;
@ -103,7 +103,7 @@ private:
class PartialGasPressureAxis : public DiveCartesianAxis {
Q_OBJECT
public:
PartialGasPressureAxis(const DivePlotDataModel &model, double fontPrintScale, bool printMode, ProfileScene &scene);
PartialGasPressureAxis(const DivePlotDataModel &model, double dpr, bool printMode, ProfileScene &scene);
void update(int animSpeed);
private:
const DivePlotDataModel &model;