mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 21:33:24 +00:00
Location service: apply the saved GPS fixes to dive list
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5873a08197
commit
4b39971978
3 changed files with 13 additions and 0 deletions
|
@ -79,6 +79,13 @@ ApplicationWindow {
|
|||
}
|
||||
}
|
||||
|
||||
MenuItem {
|
||||
text: "Apply GPS data to dives"
|
||||
onTriggered: {
|
||||
manager.applyGpsData();
|
||||
}
|
||||
}
|
||||
|
||||
MenuItem {
|
||||
text: "View Log"
|
||||
onTriggered: {
|
||||
|
|
|
@ -147,6 +147,11 @@ void QMLManager::addDive()
|
|||
DiveListModel::instance()->startAddDive();
|
||||
}
|
||||
|
||||
void QMLManager::applyGpsData()
|
||||
{
|
||||
locationProvider->applyLocations();
|
||||
}
|
||||
|
||||
QString QMLManager::logText() const
|
||||
{
|
||||
return m_logText;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue