diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2016-12-01 12:50:30 +0100 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2016-12-07 11:48:10 +0000 |
commit | 7656821275de8b932c75063adfcdf8deb968db84 (patch) | |
tree | 993adbf164d02349b88d3308f7a8df629921562c /src/positioning/qgeoshape.cpp | |
parent | 9e71adaf31fe50e9966a6b09619968ae2b1176b6 (diff) | |
download | qtlocation-7656821275de8b932c75063adfcdf8deb968db84.tar.gz |
Deprecate QGeoShape::extendShape
As the collection of QGeoShapes grows, this method loses its scope, as
it would have undefined behavior for certain shapes (polygon, or
polyline, for example).
Therefore the base class virtual method is now deprecated, with the
documentation pointing to the specific implementations instead.
Change-Id: I9717df092b8686b5413556858e9dfe7eaa92dd80
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/positioning/qgeoshape.cpp')
-rw-r--r-- | src/positioning/qgeoshape.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/positioning/qgeoshape.cpp b/src/positioning/qgeoshape.cpp index c1f7bd9d..60ef18a4 100644 --- a/src/positioning/qgeoshape.cpp +++ b/src/positioning/qgeoshape.cpp @@ -260,7 +260,17 @@ QGeoCoordinate QGeoShape::center() const } /*! - Extends the geo shape to also cover the coordinate \a coordinate + \deprecated + + This method used to extend the geo shape to also cover the coordinate \a coordinate. + + It currently only works for \l QGeoCircle and \l QGeoRectangle, on which the functionality remains, + now also accessible through QGeoCircle::extendCircle and QGeoRectangle::extendRectangle. + + This method should therefore not be called on a generic QGeoShape any longer, as the behavior for + other shape types is undefined. + + \sa QGeoRectangle::extendRectangle, QGeoCircle::extendCircle */ void QGeoShape::extendShape(const QGeoCoordinate &coordinate) { |