diff options
-rw-r--r-- | mobile-widgets/qmlmapwidgethelper.cpp | 2 | ||||
-rw-r--r-- | qt-models/maplocationmodel.cpp | 2 | ||||
-rw-r--r-- | qt-models/maplocationmodel.h | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/mobile-widgets/qmlmapwidgethelper.cpp b/mobile-widgets/qmlmapwidgethelper.cpp index 7e653692a..faa0c5f84 100644 --- a/mobile-widgets/qmlmapwidgethelper.cpp +++ b/mobile-widgets/qmlmapwidgethelper.cpp @@ -29,7 +29,7 @@ void MapWidgetHelper::reloadMapLocations() struct dive_site *ds;
int idx;
m_mapLocationModel->clear();
- QList<MapLocation *> locationList;
+ QVector<MapLocation *> locationList;
for_each_dive_site(idx, ds) {
if (!dive_site_has_gps_location(ds))
diff --git a/qt-models/maplocationmodel.cpp b/qt-models/maplocationmodel.cpp index 62cd49aba..911905f1b 100644 --- a/qt-models/maplocationmodel.cpp +++ b/qt-models/maplocationmodel.cpp @@ -68,7 +68,7 @@ void MapLocationModel::add(MapLocation *location) endInsertRows();
}
-void MapLocationModel::addList(QList<MapLocation *> list)
+void MapLocationModel::addList(QVector<MapLocation *> list)
{
if (!list.size())
return;
diff --git a/qt-models/maplocationmodel.h b/qt-models/maplocationmodel.h index c73fa246e..547641fe7 100644 --- a/qt-models/maplocationmodel.h +++ b/qt-models/maplocationmodel.h @@ -3,7 +3,7 @@ #define MAPLOCATIONMODEL_H #include <QObject> -#include <QList> +#include <QVector> #include <QHash> #include <QByteArray> #include <QAbstractListModel> @@ -43,14 +43,14 @@ public: int rowCount(const QModelIndex &parent) const override; int count(); void add(MapLocation *); - void addList(QList<MapLocation *>); + void addList(QVector<MapLocation *>); void clear(); protected: QHash<int, QByteArray> roleNames() const; private: - QList<MapLocation *> m_mapLocations; + QVector<MapLocation *> m_mapLocations; QHash<int, QByteArray> m_roles; signals: |