mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Location service: store locations in settings
This is rather simplistic and will clutter the settings. I'm not convinced this is the BEST way to do this, but it's a rather straight forward way to get persistant storage of the location fixes. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
cd7d6ae6e5
commit
62f7ec11d7
4 changed files with 22 additions and 14 deletions
|
|
@ -1,10 +1,12 @@
|
|||
#ifndef GPSLOCATION_H
|
||||
#define GPSLOCATION_H
|
||||
|
||||
#include "units.h"
|
||||
#include <QObject>
|
||||
#include <QGeoCoordinate>
|
||||
#include <QGeoPositionInfoSource>
|
||||
#include <QGeoPositionInfo>
|
||||
#include <QSettings>
|
||||
|
||||
class GpsLocation : QObject
|
||||
{
|
||||
|
|
@ -16,6 +18,7 @@ private:
|
|||
QGeoPositionInfo lastPos;
|
||||
QGeoPositionInfoSource *gpsSource;
|
||||
void status(QString msg);
|
||||
QSettings geoSettings;
|
||||
|
||||
signals:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue