summaryrefslogtreecommitdiffstats
path: root/src/plugins/geoservices/osm/qgeotilefetcherosm.h
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@theqtcompany.com>2016-08-15 12:12:25 +0200
committerPaolo Angelelli <paolo.angelelli@theqtcompany.com>2016-08-30 11:01:14 +0000
commit52c8bfa6be4fc6c47f99c9f37c142554932c7228 (patch)
treed70ffc9c7bc690c980a05e1c1d950d06b1db6919 /src/plugins/geoservices/osm/qgeotilefetcherosm.h
parent832030f271105a96bdde70b0526df659f21de565 (diff)
Add OSM plugin parameter osm.mapping.highdpi_tiles
This patch adds a mean to enable/disable high dpi support for the OSM plugin too, following the same approach taken for the mapbox and here plugins. In order to do so, it has been necessary to rework QGeoTileProviderOsm. It can now be constructed with an arbitrary number of TileProviders, as opposed to the previous approach with one primary and one fallback tileprovider. It has also been necessary to disable Nearest interpolation for high dpi tiles, as it appears to produce considerable artifacts. So in presence of highdpi tiles, Linear interpolation is now always used. Change-Id: Id7d20fd5a320f3d5ef41b9fa28447a5c4f5398be Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/plugins/geoservices/osm/qgeotilefetcherosm.h')
-rw-r--r--src/plugins/geoservices/osm/qgeotilefetcherosm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/geoservices/osm/qgeotilefetcherosm.h b/src/plugins/geoservices/osm/qgeotilefetcherosm.h
index 8d69cc56..c3f33faa 100644
--- a/src/plugins/geoservices/osm/qgeotilefetcherosm.h
+++ b/src/plugins/geoservices/osm/qgeotilefetcherosm.h
@@ -69,7 +69,7 @@ protected:
protected Q_SLOTS:
void onProviderResolutionFinished(const QGeoTileProviderOsm *provider);
- void onProviderResolutionError(const QGeoTileProviderOsm *provider, QNetworkReply::NetworkError error);
+ void onProviderResolutionError(const QGeoTileProviderOsm *provider);
private:
QGeoTiledMapReply *getTileImage(const QGeoTileSpec &spec);