mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
a920d683a1
commit
4a126b553f
2 changed files with 7 additions and 1 deletions
|
|
@ -52,6 +52,7 @@ public:
|
|||
void add(MapLocation *);
|
||||
void addList(QVector<MapLocation *>);
|
||||
void clear();
|
||||
MapLocation *getMapLocationForUuid(quint32 uuid);
|
||||
|
||||
protected:
|
||||
QHash<int, QByteArray> roleNames() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue