cleanup: strongly type DepthAxis::unitSystem

This takes an enum of units::LENGTH, therefore declare it as
such. Yes, this is kind of superfluous bike shedding, but since
we have a strongly typed language, let's use it.

On a side note, the enum should probably not be named with
all-caps.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-06-01 07:50:54 +02:00 committed by Dirk Hohndel
parent 04d7c9b808
commit 622abc5afd

View file

@ -81,7 +81,7 @@ public:
private:
QString textForValue(double value) const override;
QColor colorForValue(double value) const override;
int unitSystem;
units::LENGTH unitSystem;
private
slots:
void settingsChanged();