/*! Returns whether the geo rectangle \a rectangle is contained within this geo rectangle. */ bool QGeoRectangle::contains(const QGeoRectangle &rectangle) const { Q_D(const QGeoRectangle); return (d->contains(rectangle.topLeft()) && d->contains(rectangle.topRight()) && d->contains(rectangle.bottomLeft()) && d->contains(rectangle.bottomRight())); }
/* This property holds the top right coordinate of this georectangle. */ void GeoRectangleValueType::setTopRight(QGeoCoordinate &coordinate) { QGeoRectangle r = v; if (r.topRight() == coordinate) return; r.setTopRight(coordinate); v = r; }