diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-01-23 17:59:14 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-23 21:11:15 -0800 |
commit | 1cae362c16ae94a98f4d00e19e1ffb591ecc5761 (patch) | |
tree | 09ac2bfc90a7a91d998d7a6cff03f3f11c8846d4 /qt-ui/profile/diveplotdatamodel.cpp | |
parent | caa45a15396a737ecbef1161e302735b148cc236 (diff) | |
download | subsurface-1cae362c16ae94a98f4d00e19e1ffb591ecc5761.tar.gz |
Added the code for the PHE gas pressure.
Using the PartialPressureGasItem the addition of a new partial plot
is very easy.
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 b523472cf..598391bc5 100644 --- a/qt-ui/profile/diveplotdatamodel.cpp +++ b/qt-ui/profile/diveplotdatamodel.cpp @@ -37,6 +37,7 @@ QVariant DivePlotDataModel::data(const QModelIndex& index, int role) const case CEILING: return item.ceiling; case SAC: return item.sac; case PN2: return item.pn2; + case PHE: return item.phe; } } @@ -83,6 +84,7 @@ QVariant DivePlotDataModel::headerData(int section, Qt::Orientation orientation, case CEILING: return tr("Ceiling"); case SAC: return tr("SAC"); case PN2: return tr("PN2"); + case PHE: return tr("PHE"); } if (role == Qt::DisplayRole && section >= TISSUE_1 && section <= TISSUE_16){ return QString("Ceiling: %1").arg(section - TISSUE_1); |