diff options
Diffstat (limited to 'core/settings/qPrefUnit.cpp')
-rw-r--r-- | core/settings/qPrefUnit.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/core/settings/qPrefUnit.cpp b/core/settings/qPrefUnit.cpp index c48421fd4..38f09ed44 100644 --- a/core/settings/qPrefUnit.cpp +++ b/core/settings/qPrefUnit.cpp @@ -29,17 +29,17 @@ void qPrefUnits::loadSync(bool doSync) disk_weight(doSync); } -HANDLE_PREFERENCE_BOOL(Units, "/coordinates", coordinates_traditional); +HANDLE_PREFERENCE_BOOL(Units, "coordinates", coordinates_traditional); -HANDLE_PREFERENCE_ENUM_EXT(Units, units::DURATION, "/duration_units", duration_units, units.); +HANDLE_PREFERENCE_ENUM_EXT(Units, units::DURATION, "duration_units", duration_units, units.); -HANDLE_PREFERENCE_ENUM_EXT(Units, units::LENGTH, "/length", length, units.); +HANDLE_PREFERENCE_ENUM_EXT(Units, units::LENGTH, "length", length, units.); -HANDLE_PREFERENCE_ENUM_EXT(Units, units::PRESSURE, "/pressure", pressure, units.); +HANDLE_PREFERENCE_ENUM_EXT(Units, units::PRESSURE, "pressure", pressure, units.); -HANDLE_PREFERENCE_BOOL_EXT(Units, "/show_units_table", show_units_table, units.); +HANDLE_PREFERENCE_BOOL_EXT(Units, "show_units_table", show_units_table, units.); -HANDLE_PREFERENCE_ENUM_EXT(Units, units::TEMPERATURE, "/temperature", temperature, units.); +HANDLE_PREFERENCE_ENUM_EXT(Units, units::TEMPERATURE, "temperature", temperature, units.); QString qPrefUnits::unit_system() { @@ -66,10 +66,10 @@ void qPrefUnits::set_unit_system(const QString& value) emit instance()->unit_system_changed(value); } } -DISK_LOADSYNC_ENUM(Units, "/unit_system", unit_system_values, unit_system); +DISK_LOADSYNC_ENUM(Units, "unit_system", unit_system_values, unit_system); -HANDLE_PREFERENCE_ENUM_EXT(Units, units::TIME, "/vertical_speed_time", vertical_speed_time, units.); +HANDLE_PREFERENCE_ENUM_EXT(Units, units::TIME, "vertical_speed_time", vertical_speed_time, units.); -HANDLE_PREFERENCE_ENUM_EXT(Units, units::VOLUME, "/volume", volume, units.); +HANDLE_PREFERENCE_ENUM_EXT(Units, units::VOLUME, "volume", volume, units.); -HANDLE_PREFERENCE_ENUM_EXT(Units, units::WEIGHT, "/weight", weight, units.); +HANDLE_PREFERENCE_ENUM_EXT(Units, units::WEIGHT, "weight", weight, units.); |