mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: trigger download of GPS fixes
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1c66e399fa
commit
2b1ffb3cc4
3 changed files with 14 additions and 0 deletions
|
@ -97,6 +97,13 @@ MobileComponents.ApplicationWindow {
|
|||
}
|
||||
}
|
||||
|
||||
Action {
|
||||
text: "Download GPS data"
|
||||
onTriggered: {
|
||||
manager.downloadGpsData();
|
||||
}
|
||||
}
|
||||
|
||||
Action {
|
||||
text: "Clear GPS cache"
|
||||
onTriggered: {
|
||||
|
|
|
@ -501,6 +501,12 @@ void QMLManager::sendGpsData()
|
|||
locationProvider->uploadToServer();
|
||||
}
|
||||
|
||||
void QMLManager::downloadGpsData()
|
||||
{
|
||||
locationProvider->downloadFromServer();
|
||||
locationProvider->updateModel();
|
||||
}
|
||||
|
||||
void QMLManager::clearGpsData()
|
||||
{
|
||||
locationProvider->clearGpsData();
|
||||
|
|
|
@ -77,6 +77,7 @@ public slots:
|
|||
QString addDive();
|
||||
void applyGpsData();
|
||||
void sendGpsData();
|
||||
void downloadGpsData();
|
||||
void clearGpsData();
|
||||
void finishSetup();
|
||||
void showMap(QString location);
|
||||
|
|
Loading…
Add table
Reference in a new issue