summaryrefslogtreecommitdiffstats
path: root/qt-models/maplocationmodel.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-07-19 03:02:34 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-28 07:31:11 -0700
commit4a126b553f218b0a695b3709f099ac81fa53b1d8 (patch)
tree6e50e145433b4311c9e2d823e8a5ec2954e164d8 /qt-models/maplocationmodel.h
parenta920d683a196ff28be3e8fa9bbaaab2a67b05553 (diff)
downloadsubsurface-4a126b553f218b0a695b3709f099ac81fa53b1d8.tar.gz
maplocationmodel: add the helper method getMapLocationForUuid()
getMapLocationForUuid() accepts a UUID, searches the MapLocation table and returns a pointer. Make use of the new method in setSelectedUuid(). Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-models/maplocationmodel.h')
-rw-r--r--qt-models/maplocationmodel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/maplocationmodel.h b/qt-models/maplocationmodel.h
index 7a1730653..ea720b983 100644
--- a/qt-models/maplocationmodel.h
+++ b/qt-models/maplocationmodel.h
@@ -52,6 +52,7 @@ public:
void add(MapLocation *);
void addList(QVector<MapLocation *>);
void clear();
+ MapLocation *getMapLocationForUuid(quint32 uuid);
protected:
QHash<int, QByteArray> roleNames() const;