mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Untangle Library Linkage
with the adittion of gpslistmodel/location, the libraries qt-models had a direct dependency on subsurface-core, and subsurface-core had a direct dependency on qt-models, this is bad. Moving a bit of code around I'v managed to clean this out, and also to clear a bit of uneeded code (GpsTracker and gpsTracker where basically the same thing.) Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7b155774c5
commit
89eed5d36e
7 changed files with 36 additions and 86 deletions
|
@ -8,6 +8,7 @@
|
|||
#include <QTextDocument>
|
||||
|
||||
#include "qt-models/divelistmodel.h"
|
||||
#include <gpslistmodel.h>
|
||||
#include "divelist.h"
|
||||
#include "pref.h"
|
||||
#include "qthelper.h"
|
||||
|
@ -511,18 +512,20 @@ void QMLManager::sendGpsData()
|
|||
void QMLManager::downloadGpsData()
|
||||
{
|
||||
locationProvider->downloadFromServer();
|
||||
locationProvider->updateModel();
|
||||
populateGpsData();
|
||||
|
||||
}
|
||||
|
||||
void QMLManager::populateGpsData()
|
||||
{
|
||||
locationProvider->updateModel();
|
||||
if (GpsListModel::instance())
|
||||
GpsListModel::instance()->update();
|
||||
}
|
||||
|
||||
void QMLManager::clearGpsData()
|
||||
{
|
||||
locationProvider->clearGpsData();
|
||||
locationProvider->updateModel();
|
||||
populateGpsData();
|
||||
}
|
||||
|
||||
QString QMLManager::logText() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue