summaryrefslogtreecommitdiffstats
path: root/qt-ui/preferences.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2013-10-14 23:48:44 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-17 14:56:52 -0700
commit579d1cb91503ff3b51e94869a0234eaf2796f435 (patch)
tree53db920564565e79013b62f5b32411db1532bc17 /qt-ui/preferences.cpp
parent437246d3ed280e2275fddc125f2f14005cc11dab (diff)
downloadsubsurface-579d1cb91503ff3b51e94869a0234eaf2796f435.tar.gz
Show SAC in the mouseover.
This is really nice to have when looking at specific parts of a dive. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/preferences.cpp')
-rw-r--r--qt-ui/preferences.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp
index e5ddc558d..4ba8739a3 100644
--- a/qt-ui/preferences.cpp
+++ b/qt-ui/preferences.cpp
@@ -74,6 +74,7 @@ void PreferencesDialog::setUiFromPrefs()
ui.defaultfilename->setText(prefs.default_filename);
ui.displayinvalid->setChecked(prefs.show_invalid);
ui.show_time->setChecked(prefs.show_time);
+ ui.show_sac->setChecked(prefs.show_sac);
ui.vertical_speed_minutes->setChecked(prefs.units.vertical_speed_time == units::MINUTES);
ui.vertical_speed_seconds->setChecked(prefs.units.vertical_speed_time == units::SECONDS);
}
@@ -118,6 +119,7 @@ void PreferencesDialog::setPrefsFromUi()
prefs.default_filename = strdup(ui.defaultfilename->text().toUtf8().data());
prefs.display_invalid_dives = ui.displayinvalid->isChecked();
SP(show_time, ui.show_time);
+ SP(show_sac, ui.show_sac);
}
#define SB(V, B) s.setValue(V, (int)(B->isChecked() ? 1 : 0))
@@ -144,6 +146,7 @@ void PreferencesDialog::syncSettings()
s.setValue("gflow", ui.gflow->value());
s.setValue("gfhigh", ui.gfhigh->value());
SB("show_time", ui.show_time);
+ SB("show_sac", ui.show_sac);
s.endGroup();
// Units