From 1549d59e448550f05c5bd1ea6a9da5d1e78c7f26 Mon Sep 17 00:00:00 2001 From: Aaron McCarthy Date: Fri, 27 Jul 2012 12:58:48 +1000 Subject: 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 --- doc/src/snippets/cpp/cppqml.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'doc/src/snippets/cpp/cppqml.cpp') 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 #include #include -#include #include #include #include @@ -120,14 +119,6 @@ void cppQmlInterface(QObject *qmlObject) qmlObject->setProperty("supplier", QVariant::fromValue(placeSupplier)); //! [Supplier set] - //! [Coordinate get] - QGeoCoordinate geoCoordinate = qmlObject->property("coordinate").value(); - //! [Coordinate get] - - //! [Coordinate set] - qmlObject->setProperty("coordinate", QVariant::fromValue(geoCoordinate)); - //! [Coordinate set] - //! [Address get] QGeoAddress geoAddress = qmlObject->property("address").value(); //! [Address get] -- cgit v1.2.1