summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/DiveObjectHelper.h
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-11-22 16:19:44 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-25 08:13:42 -0800
commit64704d6e5a0865c5acb6ce40cc32ba929f41ba00 (patch)
treee6ab73f73f5c9a479d7ec8b54486ad119794f97f /core/subsurface-qt/DiveObjectHelper.h
parentba773c811f85e6503f9571cd2ee9f001a438eb8e (diff)
downloadsubsurface-64704d6e5a0865c5acb6ce40cc32ba929f41ba00.tar.gz
mobile: autocomplete location names
Add the capability to select the location name from a list, constructed from the known dive sites in the logbook. Fixes: #546 Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'core/subsurface-qt/DiveObjectHelper.h')
-rw-r--r--core/subsurface-qt/DiveObjectHelper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.h b/core/subsurface-qt/DiveObjectHelper.h
index 83aea4841..49542ca62 100644
--- a/core/subsurface-qt/DiveObjectHelper.h
+++ b/core/subsurface-qt/DiveObjectHelper.h
@@ -50,6 +50,7 @@ class DiveObjectHelper : public QObject {
Q_PROPERTY(QStringList suitList READ suitList CONSTANT)
Q_PROPERTY(QStringList buddyList READ buddyList CONSTANT)
Q_PROPERTY(QStringList divemasterList READ divemasterList CONSTANT)
+ Q_PROPERTY(QStringList locationList READ locationList CONSTANT)
public:
DiveObjectHelper(struct dive *dive = NULL);
~DiveObjectHelper();
@@ -93,6 +94,7 @@ public:
QString endPressure() const;
QString firstGas() const;
QStringList suitList() const;
+ QStringList locationList() const;
QStringList buddyList() const;
QStringList divemasterList() const;