summaryrefslogtreecommitdiff
path: root/src/imports
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@qt.io>2016-10-13 11:14:38 +0200
committerLiang Qi <liang.qi@qt.io>2016-10-18 17:50:42 +0000
commit186e4421cf968d1b4927e90340f356c0dac770dd (patch)
tree70b5dd9c463337b607640cf622f83a82bd6ae41c /src/imports
parentfadcd02fbcbc91695bd2bf6b39e01b2a81df57b5 (diff)
downloadqtlocation-186e4421cf968d1b4927e90340f356c0dac770dd.tar.gz
Fix compilation
6df6c10e1af827d06a387e7422176dd310cf83be in qtdeclarative changed enum values. Change-Id: I55ffa6a2e55a63aec455db533e9d7b08a44978bb Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/location/qgeomapitemgeometry.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/location/qgeomapitemgeometry.cpp b/src/imports/location/qgeomapitemgeometry.cpp
index 513feb2a..c8168f67 100644
--- a/src/imports/location/qgeomapitemgeometry.cpp
+++ b/src/imports/location/qgeomapitemgeometry.cpp
@@ -70,11 +70,11 @@ void QGeoMapItemGeometry::allocateAndFill(QSGGeometry *geom) const
if (isIndexed()) {
geom->allocate(vx.size(), ix.size());
- if (geom->indexType() == QSGGeometry::TypeUnsignedShort) {
+ if (geom->indexType() == QSGGeometry::UnsignedShortType) {
quint16 *its = geom->indexDataAsUShort();
for (int i = 0; i < ix.size(); ++i)
its[i] = ix[i];
- } else if (geom->indexType() == QSGGeometry::TypeUnsignedInt) {
+ } else if (geom->indexType() == QSGGeometry::UnsignedIntType) {
quint32 *its = geom->indexDataAsUInt();
for (int i = 0; i < ix.size(); ++i)
its[i] = ix[i];