mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Report CNS in dive info tab
This adds a maxcnsText widget under infoTab and populates it. Note that I manually edited maintab.ui to display CNS and OTU next to each other and right after gas data. Signed-off-by: Gaetan Bisson <bisson@archlinux.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
434e7a6a71
commit
ae6b0468b1
2 changed files with 47 additions and 26 deletions
|
@ -319,6 +319,7 @@ void MainTab::clearInfo()
|
|||
{
|
||||
ui.sacText->clear();
|
||||
ui.otuText->clear();
|
||||
ui.maxcnsText->clear();
|
||||
ui.oxygenHeliumText->clear();
|
||||
ui.gasUsedText->clear();
|
||||
ui.dateText->clear();
|
||||
|
@ -475,6 +476,7 @@ void MainTab::updateDiveInfo(bool clear)
|
|||
}
|
||||
ui.maximumDepthText->setText(get_depth_string(displayed_dive.maxdepth, true));
|
||||
ui.averageDepthText->setText(get_depth_string(displayed_dive.meandepth, true));
|
||||
ui.maxcnsText->setText(QString("%1\%").arg(displayed_dive.maxcns));
|
||||
ui.otuText->setText(QString("%1").arg(displayed_dive.otu));
|
||||
ui.waterTemperatureText->setText(get_temperature_string(displayed_dive.watertemp, true));
|
||||
ui.airTemperatureText->setText(get_temperature_string(displayed_dive.airtemp, true));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue