From cae6960eac256cb6a212dae09d49d94bc64bca7e Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 13 Jan 2016 17:53:22 -0200 Subject: Settings QObjectification: some cleanups Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- subsurface-core/subsurface-qt/SettingsObjectWrapper.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'subsurface-core') diff --git a/subsurface-core/subsurface-qt/SettingsObjectWrapper.cpp b/subsurface-core/subsurface-qt/SettingsObjectWrapper.cpp index f31398832..73137b8a8 100644 --- a/subsurface-core/subsurface-qt/SettingsObjectWrapper.cpp +++ b/subsurface-core/subsurface-qt/SettingsObjectWrapper.cpp @@ -333,9 +333,9 @@ void TechnicalDetailsSettings::setRulerGraph(short value) /* TODO: search for the QSettings of the RulerBar */ QSettings s; s.beginGroup(tecDetails); - s.setValue("phethreshold", value); + s.setValue("RulerBar", value); prefs.pp_graphs.phe_threshold = value; - emit pheThresholdChanged(value); + emit rulerGraphChanged(value); } void TechnicalDetailsSettings::setShowCCRSetpoint(bool value) @@ -504,6 +504,7 @@ void GeocodingPreferences::setEnableGeocoding(bool value) prefs.geocoding.enable_geocoding = value; emit enableGeocodingChanged(value); } + void GeocodingPreferences::setParseDiveWithoutGps(bool value) { QSettings s; @@ -512,6 +513,7 @@ void GeocodingPreferences::setParseDiveWithoutGps(bool value) prefs.geocoding.parse_dive_without_gps = value; emit parseDiveWithoutGpsChanged(value); } + void GeocodingPreferences::setTagExistingDives(bool value) { QSettings s; -- cgit v1.2.3-70-g09d2