diff options
author | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2016-10-13 11:14:38 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2016-10-18 17:50:42 +0000 |
commit | 186e4421cf968d1b4927e90340f356c0dac770dd (patch) | |
tree | 70b5dd9c463337b607640cf622f83a82bd6ae41c /src/imports/location/qgeomapitemgeometry.cpp | |
parent | fadcd02fbcbc91695bd2bf6b39e01b2a81df57b5 (diff) | |
download | qtlocation-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/location/qgeomapitemgeometry.cpp')
-rw-r--r-- | src/imports/location/qgeomapitemgeometry.cpp | 4 |
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]; |