mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
04d7c9b808
commit
622abc5afd
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue