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>
This commit is contained in:
Dirk Hohndel 2013-11-23 15:34:17 -08:00
parent 03a0678b00
commit 8e5c222e98
4 changed files with 32 additions and 5 deletions

View file

@ -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");