diff options
Diffstat (limited to 'src/location/qgeoboundingcircle.h')
-rw-r--r-- | src/location/qgeoboundingcircle.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/location/qgeoboundingcircle.h b/src/location/qgeoboundingcircle.h index 3c00e241..10b23e29 100644 --- a/src/location/qgeoboundingcircle.h +++ b/src/location/qgeoboundingcircle.h @@ -60,22 +60,18 @@ class Q_LOCATION_EXPORT QGeoBoundingCircle : public QGeoBoundingArea public: QGeoBoundingCircle(); QGeoBoundingCircle(const QGeoCoordinate ¢er, qreal radius = -1.0); - QGeoBoundingCircle(const QGeoBoundingCircle &other); + QGeoBoundingCircle(const QGeoBoundingArea &other); + ~QGeoBoundingCircle(); QGeoBoundingCircle& operator = (const QGeoBoundingCircle &other); - bool operator == (const QGeoBoundingArea &other) const; - bool operator == (const QGeoBoundingCircle &other) const; - - bool operator != (const QGeoBoundingArea &other) const; - bool operator != (const QGeoBoundingCircle &other) const; + using QGeoBoundingArea::operator==; + bool operator==(const QGeoBoundingCircle &other) const; - QGeoBoundingArea::AreaType type() const; - - bool isValid() const; - bool isEmpty() const; + using QGeoBoundingArea::operator!=; + bool operator!=(const QGeoBoundingCircle &other) const; void setCenter(const QGeoCoordinate ¢er); QGeoCoordinate center() const; @@ -83,14 +79,12 @@ public: void setRadius(qreal radius); qreal radius() const; - bool contains(const QGeoCoordinate &coordinate) const; - void translate(double degreesLatitude, double degreesLongitude); QGeoBoundingCircle translated(double degreesLatitude, double degreesLongitude) const; - QGeoBoundingArea *clone() const; private: - QSharedDataPointer<QGeoBoundingCirclePrivate> d_ptr; + inline QGeoBoundingCirclePrivate *d_func(); + inline const QGeoBoundingCirclePrivate *d_func() const; }; QT_END_NAMESPACE |