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/location/places/qplacesearchrequest.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/location/places/qplacesearchrequest.cpp')
-rw-r--r-- | src/location/places/qplacesearchrequest.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/location/places/qplacesearchrequest.cpp b/src/location/places/qplacesearchrequest.cpp index 9a120e2f..fbd56f65 100644 --- a/src/location/places/qplacesearchrequest.cpp +++ b/src/location/places/qplacesearchrequest.cpp @@ -41,7 +41,7 @@ #include "qplacesearchrequest.h" #include "qgeocoordinate.h" -#include "qgeoboundingarea.h" +#include "qgeoshape.h" #include <QtCore/QSharedData> #include <QtCore/QList> @@ -62,7 +62,7 @@ public: QString searchTerm; QList<QPlaceCategory> categories; - QGeoBoundingArea searchArea; + QGeoShape searchArea; int dymNumber; QtLocation::VisibilityScope visibilityScope; QPlaceSearchRequest::RelevanceHint relevanceHint; @@ -128,7 +128,7 @@ void QPlaceSearchRequestPrivate::clear() offset = 0; searchTerm.clear(); categories.clear(); - searchArea = QGeoBoundingArea(); + searchArea = QGeoShape(); dymNumber = 0; visibilityScope = QtLocation::UnspecifiedVisibility; relevanceHint = QPlaceSearchRequest::UnspecifiedHint; @@ -150,9 +150,6 @@ void QPlaceSearchRequestPrivate::clear() a center but no radius. The default radius is set to -1, which indicates an undefined radius. The provider will interpret this as being free to choose its own default radius. - The QPlaceSearchRequest will assume ownership of the bounding area and will be responsible - for its destruction. - The QPlaceSearchRequest is primarily used with the QPlaceManager to \l {QPlaceManager::search()} {search for places}, however it is also used to provide parameters for \l {QPlaceManager::searchSuggestions()}{generating search term suggestions} @@ -176,7 +173,7 @@ void QPlaceSearchRequestPrivate::clear() \value DistanceHint Distance to a search center is relevant for the user. Closer places are more highly weighted. This hint is only useful - if a circular bounding area is used in the query. + if a circular search area is used in the query. \value LexicalPlaceNameHint Alphabetic ordering of places according to name is relevant to the user. */ @@ -295,9 +292,9 @@ void QPlaceSearchRequest::setCategories(const QList<QPlaceCategory> &categories) /*! Returns the search area which will be used to limit search results. The default search area is - an invalid QGeoBoundingArea, indicating that no specific search area is defined. + an invalid QGeoShape, indicating that no specific search area is defined. */ -QGeoBoundingArea QPlaceSearchRequest::searchArea() const +QGeoShape QPlaceSearchRequest::searchArea() const { Q_D(const QPlaceSearchRequest); return d->searchArea; @@ -306,7 +303,7 @@ QGeoBoundingArea QPlaceSearchRequest::searchArea() const /*! Sets the search request to search within the given \a area. */ -void QPlaceSearchRequest::setSearchArea(const QGeoBoundingArea &area) +void QPlaceSearchRequest::setSearchArea(const QGeoShape &area) { Q_D(QPlaceSearchRequest); d->searchArea = area; |