diff options
Diffstat (limited to 'qt-ui/profile')
-rw-r--r-- | qt-ui/profile/diveplotdatamodel.cpp | 4 | ||||
-rw-r--r-- | qt-ui/profile/diveplotdatamodel.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/profile/diveplotdatamodel.cpp b/qt-ui/profile/diveplotdatamodel.cpp index 09ef76f9d..2e3f5228e 100644 --- a/qt-ui/profile/diveplotdatamodel.cpp +++ b/qt-ui/profile/diveplotdatamodel.cpp @@ -58,6 +58,8 @@ QVariant DivePlotDataModel::data(const QModelIndex &index, int role) const return AMB_PERCENTAGE; case GFLINE: return item.gfline; + case INSTANT_MEANDEPTH: + return item.running_sum; } } @@ -131,6 +133,8 @@ QVariant DivePlotDataModel::headerData(int section, Qt::Orientation orientation, return tr("Heart Beat"); case GFLINE: return tr("Gradient Factor"); + case INSTANT_MEANDEPTH: + return tr("Mean Depth/s"); } if (role == Qt::DisplayRole && section >= TISSUE_1 && section <= TISSUE_16) { return QString("Ceiling: %1").arg(section - TISSUE_1); diff --git a/qt-ui/profile/diveplotdatamodel.h b/qt-ui/profile/diveplotdatamodel.h index 416ae6905..91e6a8b30 100644 --- a/qt-ui/profile/diveplotdatamodel.h +++ b/qt-ui/profile/diveplotdatamodel.h @@ -62,6 +62,7 @@ public: HEARTBEAT, AMBPRESSURE, GFLINE, + INSTANT_MEANDEPTH, COLUMNS }; explicit DivePlotDataModel(QObject *parent = 0); |