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:
Gaetan Bisson 2014-09-12 11:58:33 -10:00 committed by Dirk Hohndel
parent 434e7a6a71
commit ae6b0468b1
2 changed files with 47 additions and 26 deletions

View file

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