summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeomap_p.h
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@theqtcompany.com>2016-06-30 13:22:04 +0200
committerPaolo Angelelli <paolo.angelelli@theqtcompany.com>2016-06-30 13:18:01 +0000
commit7505c7ef734245bef4094fe627290a8836a6e3f8 (patch)
treeee9f2e600d034a469c48cad1cc4bdddec1897df0 /src/location/maps/qgeomap_p.h
parent706f97d93b7e0e01bc287d9379e692ffd1bd08a6 (diff)
downloadqtlocation-7505c7ef734245bef4094fe627290a8836a6e3f8.tar.gz
Refactor: rename improperly named methods
After consultation, it seems that Qt favors using "At" rather than "For" in naming a method such as "maximumLatitudeForZoom". Moreover, this methods returns the maximum latitude that map center can have at a specific zoom level, so it is important to make that clear not only in the comments but also in the method's name. Change-Id: I26f0d18f8ca94b1bdd085cd49dd603d51a68689b 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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/location/maps/qgeomap_p.h b/src/location/maps/qgeomap_p.h
index 8f7642d4..c081a0d7 100644
--- a/src/location/maps/qgeomap_p.h
+++ b/src/location/maps/qgeomap_p.h
@@ -84,8 +84,8 @@ public:
virtual QGeoCoordinate itemPositionToCoordinate(const QDoubleVector2D &pos, bool clipToViewport = true) const = 0;
virtual QDoubleVector2D coordinateToItemPosition(const QGeoCoordinate &coordinate, bool clipToViewport = true) const = 0;
- virtual double minimumZoomForMapSize(int width, int height) const = 0;
- virtual double maximumLatitudeForZoom(double zoomLevel) const = 0;
+ virtual double minimumZoomAtMapSize(int width, int height) const = 0;
+ virtual double maximumCenterLatitudeAtZoom(double zoomLevel) const = 0;
virtual void prefetchData();
virtual void clearData();