summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps/qdeclarativepolygonmapitem_p_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/declarativemaps/qdeclarativepolygonmapitem_p_p.h')
-rw-r--r--src/location/declarativemaps/qdeclarativepolygonmapitem_p_p.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/location/declarativemaps/qdeclarativepolygonmapitem_p_p.h b/src/location/declarativemaps/qdeclarativepolygonmapitem_p_p.h
index 8d566e69..12bd4b86 100644
--- a/src/location/declarativemaps/qdeclarativepolygonmapitem_p_p.h
+++ b/src/location/declarativemaps/qdeclarativepolygonmapitem_p_p.h
@@ -67,7 +67,7 @@
#include <QtGui/QMatrix4x4>
#include <QColor>
#include <QList>
-#include <QVector>
+#include <QList>
#include <QtCore/QScopedValueRollback>
QT_BEGIN_NAMESPACE
@@ -117,9 +117,8 @@ public:
void allocateAndFillPolygon(QSGGeometry *geom) const
{
-
- const QVector<QDeclarativeGeoMapItemUtils::vec2> &vx = m_screenVertices;
- const QVector<quint32> &ix = m_screenIndices;
+ const QList<QDeclarativeGeoMapItemUtils::vec2> &vx = m_screenVertices;
+ const QList<quint32> &ix = m_screenIndices;
geom->allocate(vx.size(), ix.size());
if (geom->indexType() == QSGGeometry::UnsignedShortType) {
@@ -137,10 +136,10 @@ public:
pts[i].set(vx[i].x, vx[i].y);
}
- QVector<QDeclarativeGeoMapItemUtils::vec2> m_screenVertices;
- QVector<quint32> m_screenIndices;
+ QList<QDeclarativeGeoMapItemUtils::vec2> m_screenVertices;
+ QList<quint32> m_screenIndices;
QDoubleVector2D m_bboxLeftBoundWrapped;
- QVector<WrappedPolygon> m_wrappedPolygons;
+ QList<WrappedPolygon> m_wrappedPolygons;
int m_wrapOffset;
};