From 8065374793908894b47cfd1c2bb0b9913d404bb4 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 21 Jan 2014 14:59:19 -0200 Subject: Add the DiveCalculatedCeiling item. This item plots the DiveCalculatedCeiling over the profile. I still need to add the Calc All Tissues version. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/diveplotdatamodel.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui/profile/diveplotdatamodel.cpp') diff --git a/qt-ui/profile/diveplotdatamodel.cpp b/qt-ui/profile/diveplotdatamodel.cpp index e393696dc..b32918bc5 100644 --- a/qt-ui/profile/diveplotdatamodel.cpp +++ b/qt-ui/profile/diveplotdatamodel.cpp @@ -34,6 +34,7 @@ QVariant DivePlotDataModel::data(const QModelIndex& index, int role) const case CYLINDERINDEX: return item.cylinderindex; case SENSOR_PRESSURE: return item.pressure[0]; case INTERPOLATED_PRESSURE: return item.pressure[1]; + case CEILING: return item.ceiling; case SAC: return item.sac; } } @@ -73,6 +74,7 @@ QVariant DivePlotDataModel::headerData(int section, Qt::Orientation orientation, case CYLINDERINDEX: return tr("Cylinder Index"); case SENSOR_PRESSURE: return tr("Pressure S"); case INTERPOLATED_PRESSURE: return tr("Pressure I"); + case CEILING: return tr("Ceiling"); case SAC: return tr("SAC"); } return QVariant(); -- cgit v1.2.3-70-g09d2