summaryrefslogtreecommitdiff
path: root/src/location/quickmapitems/qgeomapitemgeometry_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/quickmapitems/qgeomapitemgeometry_p.h')
-rw-r--r--src/location/quickmapitems/qgeomapitemgeometry_p.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/location/quickmapitems/qgeomapitemgeometry_p.h b/src/location/quickmapitems/qgeomapitemgeometry_p.h
index 59e90365..4e32315f 100644
--- a/src/location/quickmapitems/qgeomapitemgeometry_p.h
+++ b/src/location/quickmapitems/qgeomapitemgeometry_p.h
@@ -16,6 +16,7 @@
//
#include <QtLocation/private/qlocationglobal_p.h>
+#include <QtLocation/private/qdeclarativegeomapitembase_p.h>
#include <QtLocation/private/qdeclarativegeomapitemutils_p.h>
#include <QtPositioning/private/qdoublevector2d_p.h>
#include <QtPositioning/private/qwebmercator_p.h>
@@ -86,7 +87,6 @@ public:
inline void clearBounds() { sourceBounds_ = screenBounds_ = QRectF(); firstPointOffset_ = QPointF(); }
inline QPointF firstPointOffset() const { return firstPointOffset_; }
- void translate(const QPointF &offset);
inline const QGeoCoordinate &origin() const { return srcOrigin_; }
@@ -119,9 +119,11 @@ public:
inline void clear() { firstPointOffset_ = QPointF(0,0);
screenVertices_.clear(); screenIndices_.clear(); }
+#ifndef MAPITEMS_USE_SHAPES
+ void translate(const QPointF &offset);
void allocateAndFill(QSGGeometry *geom) const;
-
static QRectF translateToCommonOrigin(const QList<QGeoMapItemGeometry *> &geoms);
+#endif
mutable bool m_dataChanged = false;