diff options
Diffstat (limited to 'examples/maps/navigator.cpp')
-rw-r--r-- | examples/maps/navigator.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/maps/navigator.cpp b/examples/maps/navigator.cpp index c3b93ff0..617a9b6c 100644 --- a/examples/maps/navigator.cpp +++ b/examples/maps/navigator.cpp @@ -44,7 +44,7 @@ #include "marker.h" Navigator::Navigator(QGeoRoutingManager *routingManager, - QGeoSearchManager *searchManager, + QGeocodingManager *searchManager, MapsWidget *mapsWidget, const QString &address, const QGeoRouteRequest &requestTemplate) : address(address), @@ -85,12 +85,12 @@ void Navigator::start() startMarker->setName("Start point"); mapsWidget->map()->addMapObject(startMarker); - addressReply = searchManager->search(address); + addressReply = searchManager->geocode(address); if (addressReply->isFinished()) { on_addressSearchFinished(); } else { - connect(addressReply, SIGNAL(error(QGeoSearchReply::Error,QString)), - this, SIGNAL(searchError(QGeoSearchReply::Error,QString))); + connect(addressReply, SIGNAL(error(QGeocodeReply::Error,QString)), + this, SIGNAL(searchError(QGeocodeReply::Error,QString))); connect(addressReply, SIGNAL(finished()), this, SLOT(on_addressSearchFinished())); } |