void tst_QGeoCircle::center() { QGeoCircle c; c.setCenter(QGeoCoordinate(1,1)); QCOMPARE(c.center(), QGeoCoordinate(1,1)); c.setCenter(QGeoCoordinate(5,10)); QCOMPARE(c.center(), QGeoCoordinate(5,10)); }
void GeoCircleValueType::setCenter(const QGeoCoordinate &coordinate) { QGeoCircle c = v; if (c.center() == coordinate) return; c.setCenter(coordinate); v = c; }