mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 09:43:24 +00:00
Settings QObjectification: some cleanups
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ab35ee69bd
commit
cae6960eac
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue