/* This property holds the height of this georectangle (in degrees). */ void GeoRectangleValueType::setHeight(double height) { QGeoRectangle r = v; if (!r.isValid()) r.setCenter(QGeoCoordinate(0.0, 0.0)); r.setHeight(height); v = r; }
/* This property holds the width of this georectangle (in degrees). */ void GeoRectangleValueType::setWidth(double width) { QGeoRectangle r = v; if (!r.isValid()) r.setCenter(QGeoCoordinate(0.0, 0.0)); r.setWidth(width); v = r; }
/* This property holds the center coordinate of this georectangle. */ void GeoRectangleValueType::setCenter(const QGeoCoordinate &coordinate) { QGeoRectangle r = v; if (r.center() == coordinate) return; r.setCenter(coordinate); v = r; }