diff options
Diffstat (limited to 'src/plugins/geoservices/osm/qgeoroutingmanagerengineosm.cpp')
-rw-r--r-- | src/plugins/geoservices/osm/qgeoroutingmanagerengineosm.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/geoservices/osm/qgeoroutingmanagerengineosm.cpp b/src/plugins/geoservices/osm/qgeoroutingmanagerengineosm.cpp index 29a35aaa..3bbe6576 100644 --- a/src/plugins/geoservices/osm/qgeoroutingmanagerengineosm.cpp +++ b/src/plugins/geoservices/osm/qgeoroutingmanagerengineosm.cpp @@ -94,9 +94,10 @@ QGeoRouteReply* QGeoRoutingManagerEngineOsm::calculateRoute(const QGeoRouteReque QGeoRouteReplyOsm *routeReply = new QGeoRouteReplyOsm(reply, request, this); - connect(routeReply, SIGNAL(finished()), this, SLOT(replyFinished())); - connect(routeReply, SIGNAL(error(QGeoRouteReply::Error,QString)), - this, SLOT(replyError(QGeoRouteReply::Error,QString))); + connect(routeReply, &QGeoRouteReplyOsm::finished, + this, &QGeoRoutingManagerEngineOsm::replyFinished); + connect(routeReply, &QGeoRouteReplyOsm::errorOccurred, + this, &QGeoRoutingManagerEngineOsm::replyError); return routeReply; } @@ -118,5 +119,5 @@ void QGeoRoutingManagerEngineOsm::replyError(QGeoRouteReply::Error errorCode, { QGeoRouteReply *reply = qobject_cast<QGeoRouteReply *>(sender()); if (reply) - emit error(reply, errorCode, errorString); + emit errorOccurred(reply, errorCode, errorString); } |