summaryrefslogtreecommitdiffstats
path: root/core/gpslocation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/gpslocation.cpp')
-rw-r--r--core/gpslocation.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/gpslocation.cpp b/core/gpslocation.cpp
index 012b24403..72f0bb557 100644
--- a/core/gpslocation.cpp
+++ b/core/gpslocation.cpp
@@ -321,6 +321,16 @@ void GpsLocation::loadFromStorage()
}
}
+QString GpsLocation::getFixString()
+{
+ // only used for debugging
+ QString res;
+ struct gpsTracker gpsEntry;
+ foreach (gpsEntry, m_trackers.values())
+ res += QString("%1: %2; %3 ; \"%4\"\n").arg(gpsEntry.when).arg(gpsEntry.location.lat.udeg).arg(gpsEntry.location.lon.udeg).arg(gpsEntry.name);
+ return res;
+}
+
void GpsLocation::replaceFixToStorage(gpsTracker &gt)
{
if (!m_trackers.keys().contains(gt.when)) {