mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
a525fff112
commit
432110ac8f
3 changed files with 6 additions and 7 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue