diff options
author | jan Iversen <jan@casacondor.com> | 2020-01-07 14:31:49 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-20 09:55:26 -0800 |
commit | 6e065506317e2595a0df19dba147576d392c9506 (patch) | |
tree | 9061a855826df17a5acf6cb4b207c205694db7dd /desktop-widgets/preferences | |
parent | 13b2b9f19c3f9ecb41565c5eab07d590071dede6 (diff) | |
download | subsurface-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/preferences')
-rw-r--r-- | desktop-widgets/preferences/preferences_units.cpp | 2 |
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); |