summaryrefslogtreecommitdiff
path: root/src/location/quickmapitems/qdeclarativepolygonmapitem_p_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/quickmapitems/qdeclarativepolygonmapitem_p_p.h')
-rw-r--r--src/location/quickmapitems/qdeclarativepolygonmapitem_p_p.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/location/quickmapitems/qdeclarativepolygonmapitem_p_p.h b/src/location/quickmapitems/qdeclarativepolygonmapitem_p_p.h
index 80f2159c..449a1a1d 100644
--- a/src/location/quickmapitems/qdeclarativepolygonmapitem_p_p.h
+++ b/src/location/quickmapitems/qdeclarativepolygonmapitem_p_p.h
@@ -45,10 +45,6 @@ public:
void updateSourcePoints(const QGeoMap &map,
const QList<QDoubleVector2D> &path);
-#ifndef MAPITEMS_USE_SHAPES
- void updateScreenPoints(const QGeoMap &map, qreal strokeWidth = 0.0);
-#endif
-
QPainterPath srcPath() const { return srcPath_; }
qreal maxCoord() const { return maxCoord_; }
@@ -58,24 +54,6 @@ protected:
bool assumeSimple_ = false;
};
-#ifndef MAPITEMS_USE_SHAPES
-class Q_LOCATION_PRIVATE_EXPORT MapPolygonNode : public MapItemGeometryNode
-{
-
-public:
- MapPolygonNode();
- ~MapPolygonNode() override;
-
- void update(const QColor &fillColor, const QColor &borderColor,
- const QGeoMapItemGeometry *fillShape,
- const QGeoMapItemGeometry *borderShape);
-private:
- QSGFlatColorMaterial fill_material_;
- MapPolylineNode *border_;
- QSGGeometry geometry_;
-};
-#endif
-
class Q_LOCATION_PRIVATE_EXPORT QDeclarativePolygonMapItemPrivate
{
Q_DISABLE_COPY_MOVE(QDeclarativePolygonMapItemPrivate)
@@ -115,9 +93,6 @@ public:
{
// preserveGeometry is cleared in updateMapItemPaintNode
m_geometry.markSourceDirty();
-#ifndef MAPITEMS_USE_SHAPES
- m_borderGeometry.markSourceDirty();
-#endif
m_poly.polishAndUpdate();
}
void regenerateCache()
@@ -140,9 +115,6 @@ public:
void preserveGeometry()
{
m_geometry.setPreserveGeometry(true, m_poly.m_geopoly.boundingGeoRectangle().topLeft());
-#ifndef MAPITEMS_USE_SHAPES
- m_borderGeometry.setPreserveGeometry(true, m_poly.m_geopoly.boundingGeoRectangle().topLeft());
-#endif
}
void afterViewportChanged() override
{
@@ -177,14 +149,9 @@ public:
QList<QDoubleVector2D> m_geopathProjected;
QGeoMapPolygonGeometry m_geometry;
-#ifdef MAPITEMS_USE_SHAPES
QQuickShape *m_shape = nullptr;
QQuickShapePath *m_shapePath = nullptr;
QDeclarativeGeoMapPainterPath *m_painterPath = nullptr;
-#else
- QGeoMapPolylineGeometry m_borderGeometry;
- MapPolygonNode *m_node = nullptr;
-#endif
};
QT_END_NAMESPACE