summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-02 10:48:09 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-02 10:48:09 -0700
commitf9c97ff97d072d6a4cb934a50427dc69382281e0 (patch)
tree1588b2fb642cf64f39ae520cc02e4f914ae1b110
parent63c50805610c8d0dd0ec85dc62b3007df4e5dc0b (diff)
downloadsubsurface-f9c97ff97d072d6a4cb934a50427dc69382281e0.tar.gz
Show cylinder and gas used in the Qt dive list
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/models.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index 12a0398a0..68f575ec8 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -470,6 +470,12 @@ QVariant DiveItem::data(int column, int role) const
case SUIT:
retVal = QString(dive->suit);
break;
+ case CYLINDER:
+ retVal = QString(dive->cylinder[0].type.description);
+ break;
+ case NITROX:
+ retVal = QString(get_nitrox_string(dive));
+ break;
case SAC:
retVal = displaySac();
break;