summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2020-01-07 14:31:49 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-20 09:55:26 -0800
commit6e065506317e2595a0df19dba147576d392c9506 (patch)
tree9061a855826df17a5acf6cb4b207c205694db7dd /desktop-widgets
parent13b2b9f19c3f9ecb41565c5eab07d590071dede6 (diff)
downloadsubsurface-6e065506317e2595a0df19dba147576d392c9506.tar.gz
core/settings:: remove string functions for units
Remove string version of unit_system, duration_units, length, pressure, temperature, vertical_speed_time, and volume, including tests and make signals strongly typed in C++ Signed-off-by: jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/preferences/preferences_units.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/preferences/preferences_units.cpp b/desktop-widgets/preferences/preferences_units.cpp
index db23efd37..ccb7620cf 100644
--- a/desktop-widgets/preferences/preferences_units.cpp
+++ b/desktop-widgets/preferences/preferences_units.cpp
@@ -50,7 +50,7 @@ void PreferencesUnits::syncSettings()
QString unitSystem[] = {"metric", "imperial", "personal"};
short unitValue = ui->metric->isChecked() ? METRIC : (ui->imperial->isChecked() ? IMPERIAL : PERSONALIZE);
- qPrefUnits::set_unit_system(unitSystem[unitValue]);
+ qPrefUnits::set_unit_system((unit_system_values)unitValue);
qPrefUnits::set_temperature(ui->fahrenheit->isChecked() ? units::FAHRENHEIT : units::CELSIUS);
qPrefUnits::set_length(ui->feet->isChecked() ? units::FEET : units::METERS);
qPrefUnits::set_pressure(ui->psi->isChecked() ? units::PSI : units::BAR);