summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qmlmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-mobile/qmlmanager.cpp')
-rw-r--r--qt-mobile/qmlmanager.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp
index a84e46dd4..d2b5c4702 100644
--- a/qt-mobile/qmlmanager.cpp
+++ b/qt-mobile/qmlmanager.cpp
@@ -708,3 +708,13 @@ QString QMLManager::getDate(QString diveId)
datestring = get_dive_date_string(d->when);
return datestring;
}
+
+QString QMLManager::getCylinder(QString diveId)
+{
+ int dive_id = diveId.toInt();
+ struct dive *d = get_dive_by_uniq_id(dive_id);
+ QString cylinder;
+ if (d)
+ cylinder = d->cylinder[0].type.description;
+ return cylinder;
+}