mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
03a0678b00
commit
8e5c222e98
4 changed files with 32 additions and 5 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue