diff options
Diffstat (limited to 'src/positioning/qgeopolygon.h')
-rw-r--r-- | src/positioning/qgeopolygon.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/positioning/qgeopolygon.h b/src/positioning/qgeopolygon.h index 90886da7..85b09e34 100644 --- a/src/positioning/qgeopolygon.h +++ b/src/positioning/qgeopolygon.h @@ -41,6 +41,7 @@ #define QGEOPOLYGON_H #include <QtPositioning/QGeoShape> +#include <QtCore/QVariantList> QT_BEGIN_NAMESPACE @@ -51,6 +52,7 @@ typedef QGeoPathPrivate QGeoPolygonPrivate; class Q_POSITIONING_EXPORT QGeoPolygon : public QGeoShape { Q_GADGET + Q_PROPERTY(QVariantList perimeter READ perimeter WRITE setPerimeter REVISION 12) public: QGeoPolygon(); @@ -68,7 +70,7 @@ public: using QGeoShape::operator!=; bool operator!=(const QGeoPolygon &other) const; - void setPath(const QList<QGeoCoordinate> &path); + void setPath(const QList<QGeoCoordinate> &path); // ### Qt6: rename into setPerimeter const QList<QGeoCoordinate> &path() const; Q_INVOKABLE void translate(double degreesLatitude, double degreesLongitude); @@ -85,6 +87,10 @@ public: Q_INVOKABLE QString toString() const; +protected: + void setPerimeter(const QVariantList &path); + QVariantList perimeter() const; + private: inline QGeoPolygonPrivate *d_func(); inline const QGeoPolygonPrivate *d_func() const; |