mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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 {
|
MenuItem {
|
||||||
text: "View Log"
|
text: "View Log"
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
|
|
|
@ -147,6 +147,11 @@ void QMLManager::addDive()
|
||||||
DiveListModel::instance()->startAddDive();
|
DiveListModel::instance()->startAddDive();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void QMLManager::applyGpsData()
|
||||||
|
{
|
||||||
|
locationProvider->applyLocations();
|
||||||
|
}
|
||||||
|
|
||||||
QString QMLManager::logText() const
|
QString QMLManager::logText() const
|
||||||
{
|
{
|
||||||
return m_logText;
|
return m_logText;
|
||||||
|
|
|
@ -42,6 +42,7 @@ public slots:
|
||||||
void commitChanges(QString diveId, QString suit, QString buddy, QString diveMaster, QString notes);
|
void commitChanges(QString diveId, QString suit, QString buddy, QString diveMaster, QString notes);
|
||||||
void saveChanges();
|
void saveChanges();
|
||||||
void addDive();
|
void addDive();
|
||||||
|
void applyGpsData();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString m_cloudUserName;
|
QString m_cloudUserName;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue