summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/diveplotdatamodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/profile/diveplotdatamodel.cpp')
-rw-r--r--qt-ui/profile/diveplotdatamodel.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/profile/diveplotdatamodel.cpp b/qt-ui/profile/diveplotdatamodel.cpp
index cbe9cfadc..09985b1ca 100644
--- a/qt-ui/profile/diveplotdatamodel.cpp
+++ b/qt-ui/profile/diveplotdatamodel.cpp
@@ -31,6 +31,9 @@ QVariant DivePlotDataModel::data(const QModelIndex& index, int role) const
case TEMPERATURE: return item.temperature;
case COLOR: return item.velocity;
case USERENTERED: return false;
+ case CYLINDERINDEX: return item.cylinderindex;
+ case SENSOR_PRESSURE: return item.pressure[0];
+ case INTERPOLATED_PRESSURE: return item.pressure[1];
}
}
if (role == Qt::BackgroundRole) {
@@ -61,6 +64,9 @@ QVariant DivePlotDataModel::headerData(int section, Qt::Orientation orientation,
case TEMPERATURE: return tr("Temperature");
case COLOR: return tr("Color");
case USERENTERED: return tr("User Entered");
+ case CYLINDERINDEX: return tr("Cylinder Index");
+ case SENSOR_PRESSURE: return tr("Sensor Pressure");
+ case INTERPOLATED_PRESSURE: return tr("Interpolated Pressure");
}
return QVariant();
}