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:
Dirk Hohndel 2016-01-07 00:08:00 -08:00
parent 0f31102020
commit a7f8a7574e
5 changed files with 162 additions and 6 deletions

View file

@ -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);