diff options
author | Aaron McCarthy <aaron.mccarthy@jollamobile.com> | 2015-01-16 10:20:34 +1000 |
---|---|---|
committer | Aaron McCarthy <mccarthy.aaron@gmail.com> | 2015-01-20 02:46:21 +0100 |
commit | c549b13656fe7bde5536961f168f0f1a68ea3490 (patch) | |
tree | e779d64e3cab36d7edcd4ae82387f4881d92b5ff /src/imports/location/qdeclarativegeomapitembase.cpp | |
parent | 9ef638cd502ccf0caa536b4627497767bece0670 (diff) | |
download | qtlocation-c549b13656fe7bde5536961f168f0f1a68ea3490.tar.gz |
Better names for incorrectly named Map functions.
The functions to transform between coordinates and position on screen
were incorrect. Documentation and function names did not match
implementation.
New functions with better names have been added and documentation
updated to match implementation. Old invalid functions have been
deprecated.
Related private symbols have been renamed to match their purpose.
[ChangeLog][QtLocation][Important Behavior Changes] Functions in Map
item which are used transform between coordinates and screen position
have been deprecated due to confusing naming.
Change-Id: Ic501cd81220414800bc2247eae9f510954ee469f
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/imports/location/qdeclarativegeomapitembase.cpp')
-rw-r--r-- | src/imports/location/qdeclarativegeomapitembase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/location/qdeclarativegeomapitembase.cpp b/src/imports/location/qdeclarativegeomapitembase.cpp index 3657ea10..64df17cb 100644 --- a/src/imports/location/qdeclarativegeomapitembase.cpp +++ b/src/imports/location/qdeclarativegeomapitembase.cpp @@ -171,7 +171,7 @@ void QDeclarativeGeoMapItemBase::setPositionOnMap(const QGeoCoordinate &coordina if (!map_ || !quickMap_) return; - QPointF topLeft = map_->coordinateToScreenPosition(coordinate, false).toPointF() - offset; + QPointF topLeft = map_->coordinateToItemPosition(coordinate, false).toPointF() - offset; setPosition(topLeft); } |