diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-01-21 14:59:19 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-21 11:35:09 -0800 |
commit | 8065374793908894b47cfd1c2bb0b9913d404bb4 (patch) | |
tree | df2fe4bfec7a05ce3e255cdcf06a38b6f7aded4c /qt-ui/profile/diveplotdatamodel.cpp | |
parent | b1df7aeb4e06cfc512d19b2f7e7f5b455dea0c22 (diff) | |
download | subsurface-8065374793908894b47cfd1c2bb0b9913d404bb4.tar.gz |
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 <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/diveplotdatamodel.cpp')
-rw-r--r-- | qt-ui/profile/diveplotdatamodel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |