Location service: apply the saved GPS fixes to dive list

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-11-12 20:23:00 -08:00
parent 5873a08197
commit 4b39971978
3 changed files with 13 additions and 0 deletions

View file

@ -79,6 +79,13 @@ ApplicationWindow {
}
}
MenuItem {
text: "Apply GPS data to dives"
onTriggered: {
manager.applyGpsData();
}
}
MenuItem {
text: "View Log"
onTriggered: {

View file

@ -147,6 +147,11 @@ void QMLManager::addDive()
DiveListModel::instance()->startAddDive();
}
void QMLManager::applyGpsData()
{
locationProvider->applyLocations();
}
QString QMLManager::logText() const
{
return m_logText;

View file

@ -42,6 +42,7 @@ public slots:
void commitChanges(QString diveId, QString suit, QString buddy, QString diveMaster, QString notes);
void saveChanges();
void addDive();
void applyGpsData();
private:
QString m_cloudUserName;