summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2017-10-18 06:33:37 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-18 06:34:15 -0400
commit432110ac8faa3775feab35d53a9cdbeecfa7fe27 (patch)
tree2fa1fb03e92a5e73eb9c49dd4abe9da2a998d3ba /qt-models
parenta525fff1125265f9c68fd202b7ec1931dc529729 (diff)
downloadsubsurface-432110ac8faa3775feab35d53a9cdbeecfa7fe27.tar.gz
Find current gasmix for heatmap
To compute the heatmap value, we need the current gasmix but the current cylinderindex is no longer available. Fixes #562 Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/diveplotdatamodel.cpp4
-rw-r--r--qt-models/diveplotdatamodel.h1
2 files changed, 0 insertions, 5 deletions
diff --git a/qt-models/diveplotdatamodel.cpp b/qt-models/diveplotdatamodel.cpp
index 3e0ae57f1..8cabd833e 100644
--- a/qt-models/diveplotdatamodel.cpp
+++ b/qt-models/diveplotdatamodel.cpp
@@ -39,8 +39,6 @@ QVariant DivePlotDataModel::data(const QModelIndex &index, int role) const
return item.velocity;
case USERENTERED:
return false;
- case CYLINDERINDEX:
- return 0;
case SENSOR_PRESSURE:
return item.pressure[0][0];
case INTERPOLATED_PRESSURE:
@@ -123,8 +121,6 @@ QVariant DivePlotDataModel::headerData(int section, Qt::Orientation orientation,
return tr("Color");
case USERENTERED:
return tr("User entered");
- case CYLINDERINDEX:
- return tr("Cylinder index");
case SENSOR_PRESSURE:
return tr("Pressure S");
case INTERPOLATED_PRESSURE:
diff --git a/qt-models/diveplotdatamodel.h b/qt-models/diveplotdatamodel.h
index 829ee0ebd..b28dce685 100644
--- a/qt-models/diveplotdatamodel.h
+++ b/qt-models/diveplotdatamodel.h
@@ -20,7 +20,6 @@ public:
TEMPERATURE,
USERENTERED,
COLOR,
- CYLINDERINDEX,
SENSOR_PRESSURE,
INTERPOLATED_PRESSURE,
SAC,