summaryrefslogtreecommitdiff
path: root/src/positioning/qgeoshape.h
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2016-12-01 12:50:30 +0100
committerPaolo Angelelli <paolo.angelelli@qt.io>2016-12-07 11:48:10 +0000
commit7656821275de8b932c75063adfcdf8deb968db84 (patch)
tree993adbf164d02349b88d3308f7a8df629921562c /src/positioning/qgeoshape.h
parent9e71adaf31fe50e9966a6b09619968ae2b1176b6 (diff)
downloadqtlocation-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.h')
-rw-r--r--src/positioning/qgeoshape.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/positioning/qgeoshape.h b/src/positioning/qgeoshape.h
index 40123f88..441c9ebb 100644
--- a/src/positioning/qgeoshape.h
+++ b/src/positioning/qgeoshape.h
@@ -167,6 +167,7 @@ public:
Q_INVOKABLE void translate(double degreesLatitude, double degreesLongitude);
Q_INVOKABLE QGeoRectangle translated(double degreesLatitude, double degreesLongitude) const;
+ Q_INVOKABLE void extendRectangle(const QGeoCoordinate &coordinate);
Q_INVOKABLE QGeoRectangle united(const QGeoRectangle &rectangle) const;
QGeoRectangle operator|(const QGeoRectangle &rectangle) const;