diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-28 22:19:17 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-29 00:09:31 +0000 |
commit | a0cc02dfe8a82e12dc1eb902eeb906b2f9edc80b (patch) | |
tree | 1fd5f27b963fb6b691197a40556e57da147c92d2 /qt-models/maplocationmodel.h | |
parent | c980216dc0e15a21b245a902870f9b8c5a18275c (diff) | |
download | subsurface-a0cc02dfe8a82e12dc1eb902eeb906b2f9edc80b.tar.gz |
Dive list: don't pass dive_site via uintptr_t through QML
Now that struct dive_site * is a proper Q_METATYPE it is not
necessary anymore to pass dive-sites as opaque uintptr_t types.
Simply pass a QVariants or directly via dive_site *.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/maplocationmodel.h')
-rw-r--r-- | qt-models/maplocationmodel.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-models/maplocationmodel.h b/qt-models/maplocationmodel.h index 33a22366f..70f247f33 100644 --- a/qt-models/maplocationmodel.h +++ b/qt-models/maplocationmodel.h @@ -65,8 +65,7 @@ public: void clear(); MapLocation *getMapLocation(const struct dive_site *ds); void updateMapLocationCoordinates(const struct dive_site *ds, QGeoCoordinate coord); - void setSelected(struct dive_site *ds, bool fromClick = true); - Q_INVOKABLE void setSelected(QVariant divesite, QVariant fromClick = true); + Q_INVOKABLE void setSelected(struct dive_site *ds, bool fromClick = true); QVariant selectedDs(); protected: |