diff options
Diffstat (limited to 'src/location')
-rw-r--r-- | src/location/maps/qgeoroutereply.cpp | 8 | ||||
-rw-r--r-- | src/location/maps/qgeoroutereply.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/location/maps/qgeoroutereply.cpp b/src/location/maps/qgeoroutereply.cpp index 0074ee4c..97e8c4cb 100644 --- a/src/location/maps/qgeoroutereply.cpp +++ b/src/location/maps/qgeoroutereply.cpp @@ -209,6 +209,14 @@ void QGeoRouteReply::setRoutes(const QList<QGeoRoute> &routes) } /*! + Appends the list of routes to the existing list. +*/ +void QGeoRouteReply::addRoutes(const QList<QGeoRoute> &routes) +{ + d_ptr->routes.append(routes); +} + +/*! Cancels the operation immediately. This will do nothing if the reply is finished. diff --git a/src/location/maps/qgeoroutereply.h b/src/location/maps/qgeoroutereply.h index dc22b0a2..96a052fb 100644 --- a/src/location/maps/qgeoroutereply.h +++ b/src/location/maps/qgeoroutereply.h @@ -88,6 +88,7 @@ protected: void setFinished(bool finished); void setRoutes(const QList<QGeoRoute> &routes); + void addRoutes(const QList<QGeoRoute> &routes); private: QGeoRouteReplyPrivate *d_ptr; |