From 6e065506317e2595a0df19dba147576d392c9506 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Tue, 7 Jan 2020 14:31:49 +0100 Subject: 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 Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'mobile-widgets/qmlmanager.cpp') 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); -- cgit v1.2.3-70-g09d2