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 /mobile-widgets/qmlmanager.cpp | |
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 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index bb773d930..c29cbe345 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -323,10 +323,7 @@ void QMLManager::openLocalThenRemote(QString url) setLoadFromCloud(true); if (qPrefCloudStorage::cloud_verification_status() == qPrefCloudStorage::CS_UNKNOWN) qPrefCloudStorage::set_cloud_verification_status(qPrefCloudStorage::CS_VERIFIED); - if (git_prefs.unit_system == IMPERIAL) - qPrefUnits::set_unit_system("imperial"); - else if (git_prefs.unit_system == METRIC) - qPrefUnits::set_unit_system("metric"); + qPrefUnits::set_unit_system(git_prefs.unit_system); qPrefTechnicalDetails::set_tankbar(git_prefs.tankbar); qPrefTechnicalDetails::set_dcceiling(git_prefs.dcceiling); qPrefTechnicalDetails::set_show_ccr_setpoint(git_prefs.show_ccr_setpoint); |