summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeomappingmanagerengine.cpp
diff options
context:
space:
mode:
authorDavid Laing <david.laing@nokia.com>2012-02-02 16:44:01 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-02 10:01:18 +0100
commit1b1961a07139149f8f15a19f33e2ac760cad99db (patch)
tree0e917a8ea8df8ee85834b27a9378ec63b9039f8a /src/location/maps/qgeomappingmanagerengine.cpp
parent3030dee1efb4c0c6888be3cc21c1b0ae1795a8e2 (diff)
downloadqtlocation-1b1961a07139149f8f15a19f33e2ac760cad99db.tar.gz
Makes the map library use the file extension from the plugin.
We were previously just using "png" as a hard coded value. Change-Id: Iaa1a53947706b09f95a9d9e6e416e3e49388962a Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
Diffstat (limited to 'src/location/maps/qgeomappingmanagerengine.cpp')
-rw-r--r--src/location/maps/qgeomappingmanagerengine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/location/maps/qgeomappingmanagerengine.cpp b/src/location/maps/qgeomappingmanagerengine.cpp
index fb9d8924..83aec272 100644
--- a/src/location/maps/qgeomappingmanagerengine.cpp
+++ b/src/location/maps/qgeomappingmanagerengine.cpp
@@ -253,8 +253,7 @@ void QGeoMappingManagerEngine::handleReply(QGeoTiledMapReply *reply, const QGeoT
}
if (reply->error() == QGeoTiledMapReply::NoError) {
- QByteArray bytes = reply->mapImageData();
- emit tileFinished(spec, bytes);
+ emit tileFinished(spec, reply->mapImageData(), reply->mapImageFormat());
} else {
emit tileError(spec, reply->errorString());
}