mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Create GpsListModel in order to be able to display GPS fixes
This will allow us to visualize the GPS fixes that are currently stored in the QML UI. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0f31102020
commit
a7f8a7574e
5 changed files with 162 additions and 6 deletions
|
@ -1,4 +1,5 @@
|
|||
#include "gpslocation.h"
|
||||
#include "gpslistmodel.h"
|
||||
#include "pref.h"
|
||||
#include "dive.h"
|
||||
#include "helpers.h"
|
||||
|
@ -195,12 +196,6 @@ int GpsLocation::getGpsNum() const
|
|||
return geoSettings->value("count", 0).toInt();
|
||||
}
|
||||
|
||||
struct gpsTracker {
|
||||
degrees_t latitude;
|
||||
degrees_t longitude;
|
||||
time_t when;
|
||||
};
|
||||
|
||||
static void copy_gps_location(struct gpsTracker *gps, struct dive *d)
|
||||
{
|
||||
struct dive_site *ds = get_dive_site_by_uuid(d->dive_site_uuid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue