mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Dive site: replace UUID by pointer in mobile code
Replace UUIDs by pointers to dive-site in mobile code. In both cases, the value is transported via a QVariant. The function getCoordinatesForUUID(), which was only used from mobile, can be replaced by a getCoordinatesFor() function taking a variant supposed to contain a dive-site pointer. Likewise, the variant of the centerOnDiveSite function is now supposed to wrap a pointer-to-divesite. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
872d56de01
commit
75b5d61522
7 changed files with 19 additions and 21 deletions
|
@ -20,7 +20,7 @@ class DiveObjectHelper : public QObject {
|
|||
Q_PROPERTY(QString location READ location CONSTANT)
|
||||
Q_PROPERTY(QString gps READ gps CONSTANT)
|
||||
Q_PROPERTY(QString gps_decimal READ gps_decimal CONSTANT)
|
||||
Q_PROPERTY(QVariant dive_site_uuid READ dive_site_uuid CONSTANT)
|
||||
Q_PROPERTY(QVariant dive_site READ dive_site CONSTANT)
|
||||
Q_PROPERTY(QString duration READ duration CONSTANT)
|
||||
Q_PROPERTY(bool noDive READ noDive CONSTANT)
|
||||
Q_PROPERTY(QString depth READ depth CONSTANT)
|
||||
|
@ -65,7 +65,7 @@ public:
|
|||
QString location() const;
|
||||
QString gps() const;
|
||||
QString gps_decimal() const;
|
||||
QVariant dive_site_uuid() const;
|
||||
QVariant dive_site() const;
|
||||
QString duration() const;
|
||||
bool noDive() const;
|
||||
QString depth() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue