diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-02 10:48:09 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-02 10:48:09 -0700 |
commit | f9c97ff97d072d6a4cb934a50427dc69382281e0 (patch) | |
tree | 1588b2fb642cf64f39ae520cc02e4f914ae1b110 | |
parent | 63c50805610c8d0dd0ec85dc62b3007df4e5dc0b (diff) | |
download | subsurface-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.cpp | 6 |
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; |