aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models/gpslistmodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-09-22 14:52:25 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-09-25 13:35:30 -0700
commit4d3686edec2a7bca03223df8800b14928a076fc9 (patch)
treef1ed52ec9cb25988e3630646fdddafdf0c0a82d4 /qt-models/gpslistmodel.h
parent05200f9266a4e8e723450abb281c597a48da2e9f (diff)
downloadsubsurface-4d3686edec2a7bca03223df8800b14928a076fc9.tar.gz
Cleanup: Pass gpsTrackers directly to GpsListModel::update()
Instead of using the GpsLocation singleton in GpsListModel::update() to extract the gpsTrackers, pass the gpsTrackers as function argument. The caller has direct access to the GpsLocation object anyway and this make things less entangled. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/gpslistmodel.h')
-rw-r--r--qt-models/gpslistmodel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/gpslistmodel.h b/qt-models/gpslistmodel.h
index 14145d065..a49855a4d 100644
--- a/qt-models/gpslistmodel.h
+++ b/qt-models/gpslistmodel.h
@@ -24,7 +24,7 @@ public:
int rowCount(const QModelIndex &parent = QModelIndex()) const;
QHash<int, QByteArray> roleNames() const;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
- void update();
+ void update(QVector<gpsTracker> trackers);
private:
QVector<gpsTracker> m_gpsFixes;
};