summaryrefslogtreecommitdiff
path: root/src/location/labs/qmapobjectview_p.h
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-06-24 11:57:21 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-06-25 10:11:24 +0200
commitffee803f1099f85082a152791a7a3b261947a751 (patch)
tree307766f137312bad751a9c35bd3281d1772568ac /src/location/labs/qmapobjectview_p.h
parent3794e0c252a8e7a0288d3fb74dde6f5fdc09950d (diff)
downloadqtlocation-ffee803f1099f85082a152791a7a3b261947a751.tar.gz
Use QList instead of QVector
Task-number: QTBUG-84469 Change-Id: Iefd2fb627602ef4744d80858eee72a089ef5f4ec Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/location/labs/qmapobjectview_p.h')
-rw-r--r--src/location/labs/qmapobjectview_p.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/location/labs/qmapobjectview_p.h b/src/location/labs/qmapobjectview_p.h
index be5801d3..46b5a378 100644
--- a/src/location/labs/qmapobjectview_p.h
+++ b/src/location/labs/qmapobjectview_p.h
@@ -51,7 +51,7 @@
#include <QtLocation/private/qlocationglobal_p.h>
#include <QtLocation/private/qgeomapobject_p.h>
#include <QQmlComponent>
-#include <QVector>
+#include <QList>
QT_BEGIN_NAMESPACE
@@ -104,9 +104,11 @@ protected:
void flushUserAddedMapObjects();
QQmlDelegateModel *m_delegateModel = nullptr;
- QVector<QPointer<QGeoMapObject>> m_instantiatedMapObjects;
- QVector<QPointer<QGeoMapObject>> m_pendingMapObjects; // for items instantiated before the map is set
- QVector<QPointer<QGeoMapObject>> m_userAddedMapObjects; // A third list containing the objects dynamically added through addMapObject
+ QList<QPointer<QGeoMapObject>> m_instantiatedMapObjects;
+ QList<QPointer<QGeoMapObject>>
+ m_pendingMapObjects; // for items instantiated before the map is set
+ QList<QPointer<QGeoMapObject>> m_userAddedMapObjects; // A third list containing the objects
+ // dynamically added through addMapObject
bool m_creatingObject = false;
};