diff options
-rw-r--r-- | src/imports/positioning/locationsingleton.cpp | 4 | ||||
-rw-r--r-- | src/imports/positioning/locationsingleton.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/imports/positioning/locationsingleton.cpp b/src/imports/positioning/locationsingleton.cpp index 89b93617..35b0d8d9 100644 --- a/src/imports/positioning/locationsingleton.cpp +++ b/src/imports/positioning/locationsingleton.cpp @@ -241,7 +241,7 @@ QGeoPath LocationSingleton::path(const QJSValue &value, qreal width) const \sa {geopolygon} \since 5.10 */ -QGeoPath LocationSingleton::polygon() const +QGeoPolygon LocationSingleton::polygon() const { return QGeoPolygon(); } @@ -254,7 +254,7 @@ QGeoPath LocationSingleton::polygon() const \sa {geopolygon} \since 5.10 */ -QGeoPath LocationSingleton::polygon(const QVariantList &coordinates) const +QGeoPolygon LocationSingleton::polygon(const QVariantList &coordinates) const { QList<QGeoCoordinate> internalCoordinates; for (int i = 0; i < coordinates.size(); i++) { diff --git a/src/imports/positioning/locationsingleton.h b/src/imports/positioning/locationsingleton.h index 6a560fa8..56d35b70 100644 --- a/src/imports/positioning/locationsingleton.h +++ b/src/imports/positioning/locationsingleton.h @@ -77,8 +77,8 @@ public: Q_INVOKABLE QGeoPath path() const; Q_INVOKABLE QGeoPath path(const QJSValue &value, qreal width = 0.0) const; - Q_INVOKABLE QGeoPath polygon() const; - Q_INVOKABLE QGeoPath polygon(const QVariantList &value) const; + Q_INVOKABLE QGeoPolygon polygon() const; + Q_INVOKABLE QGeoPolygon polygon(const QVariantList &value) const; Q_INVOKABLE QGeoCircle shapeToCircle(const QGeoShape &shape) const; Q_INVOKABLE QGeoRectangle shapeToRectangle(const QGeoShape &shape) const; |