diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-11-23 15:34:17 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-23 22:01:11 -0800 |
commit | 8e5c222e98bc9cc5ce9dfd29733b6d5bba2c108a (patch) | |
tree | e106f5c00a5c9e589f14090c90a1fac1d6e5345d /qt-ui/preferences.cpp | |
parent | 03a0678b00856e10e18559a41be2f67f839fe44d (diff) | |
download | subsurface-8e5c222e98bc9cc5ce9dfd29733b6d5bba2c108a.tar.gz |
Create a text entry for default cylinder in preferences
We don't do anything with this just yet.
And frankly, a drop down of the cylinders that we know of would be even
better. But hey, it's a start.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/preferences.cpp')
-rw-r--r-- | qt-ui/preferences.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp index 0249c894f..0740d3f51 100644 --- a/qt-ui/preferences.cpp +++ b/qt-ui/preferences.cpp @@ -78,6 +78,7 @@ void PreferencesDialog::setUiFromPrefs() ui.font->setFont(QString(prefs.divelist_font)); ui.fontsize->setValue(prefs.font_size); ui.defaultfilename->setText(prefs.default_filename); + ui.defaultcylinder->setText(prefs.default_cylinder); ui.displayinvalid->setChecked(prefs.display_invalid_dives); ui.show_sac->setChecked(prefs.show_sac); ui.vertical_speed_minutes->setChecked(prefs.units.vertical_speed_time == units::MINUTES); @@ -139,6 +140,7 @@ void PreferencesDialog::syncSettings() // Defaults s.beginGroup("GeneralSettings"); s.value("default_filename", ui.defaultfilename->text()); + s.value("default_cylinder", ui.defaultcylinder->text()); s.endGroup(); s.beginGroup("Display"); |