mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Added configuration options for vertical speed units.
Some people (free divers) are loving ft/s or m/s units for vertical speeds. Now they can choose between /min or /s in the configuration (only Qt UI). Signed-off-by: Patrick Valsecchi <patrick@thus.ch> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6ae6c768f3
commit
c28fe00bfe
6 changed files with 80 additions and 18 deletions
|
@ -547,6 +547,7 @@ void MainWindow::readSettings()
|
|||
GET_UNIT("temperature", temperature, units::FAHRENHEIT, units::CELSIUS);
|
||||
GET_UNIT("weight", weight, units::LBS, units::KG);
|
||||
}
|
||||
GET_UNIT("vertical_speed_time", vertical_speed_time, units::MINUTES, units::SECONDS);
|
||||
s.endGroup();
|
||||
s.beginGroup("DisplayListColumns");
|
||||
GET_BOOL("CYLINDER", visible_cols.cylinder);
|
||||
|
@ -614,6 +615,7 @@ void MainWindow::writeSettings()
|
|||
SAVE_VALUE("volume", units.volume);
|
||||
SAVE_VALUE("temperature", units.temperature);
|
||||
SAVE_VALUE("weight", units.weight);
|
||||
SAVE_VALUE("vertical_speed_time", units.vertical_speed_time);
|
||||
settings.endGroup();
|
||||
settings.beginGroup("DisplayListColumns");
|
||||
SAVE_VALUE("TEMPERATURE", visible_cols.temperature);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue