diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2012-07-27 12:58:48 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-24 05:28:08 +0200 |
commit | 1549d59e448550f05c5bd1ea6a9da5d1e78c7f26 (patch) | |
tree | a4163bbe7adcb9eeec31d8d9b12399f2cd3cb5cc /doc/src/snippets/cpp/cppqml.cpp | |
parent | 5c8ad55eefd482bdb91d314502289df82c1bc9ad (diff) | |
download | qtlocation-1549d59e448550f05c5bd1ea6a9da5d1e78c7f26.tar.gz |
Convert Coordinate into a QML coordinate value type.
This replaces the Coordinate QML element with a value type.
A value type is a better fit for a coordinate. It is very similar to
a vector3d except it has an explicit coordinate system and some utility
functions.
Declare QGeoCoordinate as a movable type.
Update documentation.
Change-Id: I758fa9dfd7154a4d60fb791fe553b9fee3164c2c
Reviewed-by: abcd <amos.choy@nokia.com>
Diffstat (limited to 'doc/src/snippets/cpp/cppqml.cpp')
-rw-r--r-- | doc/src/snippets/cpp/cppqml.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/doc/src/snippets/cpp/cppqml.cpp b/doc/src/snippets/cpp/cppqml.cpp index 262d7b3f..0e7158a7 100644 --- a/doc/src/snippets/cpp/cppqml.cpp +++ b/doc/src/snippets/cpp/cppqml.cpp @@ -48,7 +48,6 @@ #include <QtLocation/QPlaceUser> #include <QtLocation/QPlaceRatings> #include <QtLocation/QPlaceSupplier> -#include <QtLocation/QGeoCoordinate> #include <QtLocation/QGeoAddress> #include <QtLocation/QGeoRectangle> #include <QtLocation/QGeoCircle> @@ -120,14 +119,6 @@ void cppQmlInterface(QObject *qmlObject) qmlObject->setProperty("supplier", QVariant::fromValue(placeSupplier)); //! [Supplier set] - //! [Coordinate get] - QGeoCoordinate geoCoordinate = qmlObject->property("coordinate").value<QGeoCoordinate>(); - //! [Coordinate get] - - //! [Coordinate set] - qmlObject->setProperty("coordinate", QVariant::fromValue(geoCoordinate)); - //! [Coordinate set] - //! [Address get] QGeoAddress geoAddress = qmlObject->property("address").value<QGeoAddress>(); //! [Address get] |