diff options
Diffstat (limited to 'doc/src/snippets')
-rw-r--r-- | doc/src/snippets/cpp/cppqml.cpp | 16 | ||||
-rw-r--r-- | doc/src/snippets/declarative/places.qml | 9 |
2 files changed, 2 insertions, 23 deletions
diff --git a/doc/src/snippets/cpp/cppqml.cpp b/doc/src/snippets/cpp/cppqml.cpp index 0e7158a7..d5d4bad9 100644 --- a/doc/src/snippets/cpp/cppqml.cpp +++ b/doc/src/snippets/cpp/cppqml.cpp @@ -127,22 +127,6 @@ void cppQmlInterface(QObject *qmlObject) qmlObject->setProperty("address", QVariant::fromValue(geoAddress)); //! [Address set] - //! [GeoRectangle get] - QGeoRectangle geoRectangle = qmlObject->property("rectangle").value<QGeoRectangle>(); - //! [GeoRectangle get] - - //! [GeoRectangle set] - qmlObject->setProperty("rectangle", QVariant::fromValue(geoRectangle)); - //! [GeoRectangle set] - - //! [GeoCircle get] - QGeoCircle geoCircle = qmlObject->property("circle").value<QGeoCircle>(); - //! [GeoCircle get] - - //! [GeoCircle set] - qmlObject->setProperty("circle", QVariant::fromValue(geoCircle)); - //! [GeoCircle set] - //! [Location get] QGeoLocation geoLocation = qmlObject->property("location").value<QGeoLocation>(); //! [Location get] diff --git a/doc/src/snippets/declarative/places.qml b/doc/src/snippets/declarative/places.qml index dbc7f8d6..11a0f3b3 100644 --- a/doc/src/snippets/declarative/places.qml +++ b/doc/src/snippets/declarative/places.qml @@ -128,13 +128,8 @@ Item { plugin: myPlugin - searchArea: GeoCircle { - center { - // Brisbane - longitude: 153.02778 - latitude: -27.46778 - } - } + // Brisbane + searchArea: QtLocation.circle(QtLocation.coordinate(-27.46778, 153.02778)) onSearchTermChanged: update() } |