diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2012-06-19 12:55:53 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-21 04:09:32 +0200 |
commit | 6b68304f59de5fa3f6c861186d98b0c7fe54a4ba (patch) | |
tree | 1d94a6db5a3ad399149e44510a86c008c58814f2 /src/plugins/geoservices/nokia/qgeoroutingmanagerengine_nokia.cpp | |
parent | 4b10442e2e83bf7440837e469af344579d1ad9d5 (diff) | |
download | qtlocation-6b68304f59de5fa3f6c861186d98b0c7fe54a4ba.tar.gz |
Rename QGeoBoundingArea and related classes to QGeoShape.
QGeoBoundingArea is used for describing more than just a bounding area.
Renaming it to a more appropriate name, QGeoShape. The same is done
for subclasses and QML equivalents.
In C++:
QGeoBoundingArea -> QGeoShape
QGeoBoundingCircle -> QGeoCircle
QGeoBoundingBox -> QGeoRectangle
In QML:
BoundingArea -> GeoShape
BoundingCircle -> GeoCircle
BoundingBox -> GeoRectangle
Change-Id: I93c6df8f1b6c5179ed52fd8354a05f709063b1cf
Reviewed-by: abcd <amos.choy@nokia.com>
Diffstat (limited to 'src/plugins/geoservices/nokia/qgeoroutingmanagerengine_nokia.cpp')
-rw-r--r-- | src/plugins/geoservices/nokia/qgeoroutingmanagerengine_nokia.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/geoservices/nokia/qgeoroutingmanagerengine_nokia.cpp b/src/plugins/geoservices/nokia/qgeoroutingmanagerengine_nokia.cpp index b9a352c1..18ecef97 100644 --- a/src/plugins/geoservices/nokia/qgeoroutingmanagerengine_nokia.cpp +++ b/src/plugins/geoservices/nokia/qgeoroutingmanagerengine_nokia.cpp @@ -55,7 +55,7 @@ #include <QStringList> #include <QUrl> #include <QLocale> -#include <qgeoboundingbox.h> +#include <QtLocation/QGeoRectangle> QT_BEGIN_NAMESPACE @@ -371,10 +371,10 @@ QString QGeoRoutingManagerEngineNokia::routeRequestString(const QGeoRouteRequest { QString requestString; - const QList<QGeoBoundingBox> excludeAreas = request.excludeAreas(); - QList<QGeoBoundingBox>::const_iterator beg = excludeAreas.begin(); - QList<QGeoBoundingBox>::const_iterator end = excludeAreas.begin(); - for (QList<QGeoBoundingBox>::const_iterator it = beg; it != end; ++it) { + const QList<QGeoRectangle> excludeAreas = request.excludeAreas(); + QList<QGeoRectangle>::const_iterator beg = excludeAreas.begin(); + QList<QGeoRectangle>::const_iterator end = excludeAreas.begin(); + for (QList<QGeoRectangle>::const_iterator it = beg; it != end; ++it) { requestString += QLatin1String("&avoidareas="); requestString += trimDouble(it->topLeft().latitude()); requestString += QLatin1String(","); |