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/location/maps/qgeomap_p.h | |
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/location/maps/qgeomap_p.h')
-rw-r--r-- | src/location/maps/qgeomap_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/location/maps/qgeomap_p.h b/src/location/maps/qgeomap_p.h index f9d5e2ea..7d62358b 100644 --- a/src/location/maps/qgeomap_p.h +++ b/src/location/maps/qgeomap_p.h @@ -89,8 +89,8 @@ public: QGeoCameraData cameraData() const; QGeoCameraCapabilities cameraCapabilities() const; - QGeoCoordinate screenPositionToCoordinate(const QDoubleVector2D &pos, bool clipToViewport = true) const; - QDoubleVector2D coordinateToScreenPosition(const QGeoCoordinate &coordinate, bool clipToViewport = true) const; + QGeoCoordinate itemPositionToCoordinate(const QDoubleVector2D &pos, bool clipToViewport = true) const; + QDoubleVector2D coordinateToItemPosition(const QGeoCoordinate &coordinate, bool clipToViewport = true) const; void setActiveMapType(const QGeoMapType mapType); const QGeoMapType activeMapType() const; |