summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps/qdeclarativepolylinemapitem_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/declarativemaps/qdeclarativepolylinemapitem_p.h')
-rw-r--r--src/location/declarativemaps/qdeclarativepolylinemapitem_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/location/declarativemaps/qdeclarativepolylinemapitem_p.h b/src/location/declarativemaps/qdeclarativepolylinemapitem_p.h
index a754fa5e..948c6663 100644
--- a/src/location/declarativemaps/qdeclarativepolylinemapitem_p.h
+++ b/src/location/declarativemaps/qdeclarativepolylinemapitem_p.h
@@ -94,7 +94,7 @@ class Q_LOCATION_PRIVATE_EXPORT QDeclarativePolylineMapItem : public QDeclarativ
Q_OBJECT
Q_ENUMS(Backend)
- Q_PROPERTY(QJSValue path READ path WRITE setPath NOTIFY pathChanged)
+ Q_PROPERTY(QList<QGeoCoordinate> path READ path WRITE setPath NOTIFY pathChanged)
Q_PROPERTY(QDeclarativeMapLineProperties *line READ line CONSTANT)
Q_PROPERTY(Backend backend READ backend WRITE setBackend NOTIFY backendChanged REVISION 15)
@@ -121,8 +121,8 @@ public:
Q_INVOKABLE void removeCoordinate(const QGeoCoordinate &coordinate);
Q_INVOKABLE void removeCoordinate(int index);
- QJSValue path() const;
- virtual void setPath(const QJSValue &value);
+ QList<QGeoCoordinate> path() const;
+ virtual void setPath(const QList<QGeoCoordinate> &value);
Q_INVOKABLE void setPath(const QGeoPath &path);
bool contains(const QPointF &point) const override;