diff options
author | Juha Vuolle <juha.vuolle@nokia.com> | 2011-11-03 12:08:11 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-03 04:17:17 +0100 |
commit | e777a50c6ee5485a00b800adc3e00e337e65e187 (patch) | |
tree | 73bb10af9615ebeb85db7b85c3b5af6867533b2b /src/imports/location/qdeclarativegeomapmousearea.cpp | |
parent | 1518f534167c63de130d01b93f885088d285986e (diff) | |
download | qtlocation-e777a50c6ee5485a00b800adc3e00e337e65e187.tar.gz |
Map QML autotests and improvements part 2/2.
Map uses mapcontroller now.
Change-Id: I4249408e4473455fca2634d8150cec00563ad015
Reviewed-by: David Laing <david.laing@nokia.com>
Diffstat (limited to 'src/imports/location/qdeclarativegeomapmousearea.cpp')
-rw-r--r-- | src/imports/location/qdeclarativegeomapmousearea.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/imports/location/qdeclarativegeomapmousearea.cpp b/src/imports/location/qdeclarativegeomapmousearea.cpp index e7c6e7e6..ecb0f348 100644 --- a/src/imports/location/qdeclarativegeomapmousearea.cpp +++ b/src/imports/location/qdeclarativegeomapmousearea.cpp @@ -212,8 +212,7 @@ void QDeclarativeGeoMapMouseArea::mapMouseEvent(QQuickMouseEvent* event) mouseEvent_->setX(event->property("x").toInt()); mouseEvent_->setY(event->property("y").toInt()); if (map_) - mouseEvent_->setCoordinate( - map_->map()->screenPositionToCoordinate(QPointF(mouseEvent_->x(), mouseEvent_->y()))); + mouseEvent_->setCoordinate(map_->toCoordinate(QPointF(mouseEvent_->x(), mouseEvent_->y()))->coordinate()); } void QDeclarativeGeoMapMouseArea::releasedHandler(QQuickMouseEvent* event) |