diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2016-01-13 17:53:22 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-01-15 05:54:54 -0800 |
commit | cae6960eac256cb6a212dae09d49d94bc64bca7e (patch) | |
tree | a75bcc4fc07bf64b2089eceb727b5a07418d39aa /subsurface-core/subsurface-qt | |
parent | ab35ee69bdaf76083e56a5cd016bf7d65b0cf858 (diff) | |
download | subsurface-cae6960eac256cb6a212dae09d49d94bc64bca7e.tar.gz |
Settings QObjectification: some cleanups
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/subsurface-qt')
-rw-r--r-- | subsurface-core/subsurface-qt/SettingsObjectWrapper.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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; |