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 /src/imports/location/qdeclarativegeomapmouseevent.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 'src/imports/location/qdeclarativegeomapmouseevent.cpp')
-rw-r--r-- | src/imports/location/qdeclarativegeomapmouseevent.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/imports/location/qdeclarativegeomapmouseevent.cpp b/src/imports/location/qdeclarativegeomapmouseevent.cpp index a6af9f6f..9aacb034 100644 --- a/src/imports/location/qdeclarativegeomapmouseevent.cpp +++ b/src/imports/location/qdeclarativegeomapmouseevent.cpp @@ -228,7 +228,7 @@ int QDeclarativeGeoMapMouseEvent::y() const } /*! - \qmlproperty Coordinate QtLocation5::MapMouseEvent::coordinate + \qmlproperty coordinate QtLocation5::MapMouseEvent::coordinate This property holds the coordinate corresponding to the latitude and longitude of the position on the map at which the mouse event @@ -237,12 +237,12 @@ int QDeclarativeGeoMapMouseEvent::y() const void QDeclarativeGeoMapMouseEvent::setCoordinate(const QGeoCoordinate &coordinate) { - coordinate_.setCoordinate(coordinate); + coordinate_ = coordinate; } -QDeclarativeCoordinate *QDeclarativeGeoMapMouseEvent::coordinate() +QGeoCoordinate QDeclarativeGeoMapMouseEvent::coordinate() { - return &coordinate_; + return coordinate_; } #include "moc_qdeclarativegeomapmouseevent_p.cpp" |