From ae6b0468b16200dcc01f8e1cfd43260b63e830dc Mon Sep 17 00:00:00 2001 From: Gaetan Bisson Date: Fri, 12 Sep 2014 11:58:33 -1000 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui/maintab.cpp') diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 920aaeafc..95ac0563d 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -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)); -- cgit v1.2.3-70-g09d2