diff options
author | David Laing <david.laing@nokia.com> | 2012-02-02 16:44:01 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-02 10:01:18 +0100 |
commit | 1b1961a07139149f8f15a19f33e2ac760cad99db (patch) | |
tree | 0e917a8ea8df8ee85834b27a9378ec63b9039f8a /src/location/maps/qgeomappingmanagerengine.cpp | |
parent | 3030dee1efb4c0c6888be3cc21c1b0ae1795a8e2 (diff) | |
download | qtlocation-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.cpp | 3 |
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()); } |