diff options
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/gpslistmodel.cpp | 3 | ||||
-rw-r--r-- | qt-models/gpslistmodel.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/qt-models/gpslistmodel.cpp b/qt-models/gpslistmodel.cpp index 8a623bf00..7849561d3 100644 --- a/qt-models/gpslistmodel.cpp +++ b/qt-models/gpslistmodel.cpp @@ -7,9 +7,8 @@ GpsListModel::GpsListModel(QObject *parent) : QAbstractListModel(parent) { } -void GpsListModel::update() +void GpsListModel::update(QVector<gpsTracker> trackers) { - QVector<gpsTracker> trackers = QVector<gpsTracker>::fromList(GpsLocation::instance()->currentGPSInfo().values()); beginResetModel(); m_gpsFixes = trackers; endResetModel(); 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; }; |