diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-04-25 09:35:46 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-05-11 12:35:11 -0700 |
commit | e76298a8a7fbbd3ccc252bf7c4a904db7c3423d6 (patch) | |
tree | ea2f1cbf3c008ed75f2a1f868a33818cbfe69842 /desktop-widgets/locationinformation.h | |
parent | c7e1c40b0e9ff1c9152f06b7f1c134f232297fe7 (diff) | |
download | subsurface-e76298a8a7fbbd3ccc252bf7c4a904db7c3423d6.tar.gz |
Dive site: show distance to current dive using extra data
Currently, in the dive-site selection widget the distance to
the dive site of the current dive is shown. Instead, use the
recently introduced dive_get_gps_location() function. Thus,
the actual GPS coordinates extracted by libdivecomputer are
used.
The function is only called when the current dive changes
and the location is stored in the item delegate.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/locationinformation.h')
-rw-r--r-- | desktop-widgets/locationinformation.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/locationinformation.h b/desktop-widgets/locationinformation.h index f3f9f9eea..0f7470af6 100644 --- a/desktop-widgets/locationinformation.h +++ b/desktop-widgets/locationinformation.h @@ -5,6 +5,7 @@ #include "core/units.h" #include "core/divesite.h" #include "ui_locationinformation.h" +#include "modeldelegates.h" #include "qt-models/divelocationmodel.h" #include <stdint.h> #include <QAbstractListModel> @@ -108,6 +109,7 @@ private: DiveLocationFilterProxyModel *proxy; DiveLocationModel *model; DiveLocationListView *view; + LocationFilterDelegate delegate; DiveSiteType currType; struct dive_site *currDs; }; |