diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-03-04 16:40:14 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-03-25 07:51:46 +0000 |
commit | 3216d71dae42126c3d730ce56b616abebd1c5b87 (patch) | |
tree | facd0662a0fd25f1b9586fccbc21ac7cdf9547d7 /src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.cpp | |
parent | f738357f041291eb42c8f6a6d5ca9aa1dd4ebfb1 (diff) | |
download | qtlocation-3216d71dae42126c3d730ce56b616abebd1c5b87.tar.gz |
Changes key of "nokia" geoservices plugin to "here"
The old name is not advertised anymore but the plugin can still be loaded
using the "nokia" key. This will be removed by later versions of Qt.
Adds a QGeoServiceProvider unit tests
Change-Id: I01f36f1bb19d31e0855e90c1605b99e61ee4450b
Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Diffstat (limited to 'src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.cpp')
-rw-r--r-- | src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.cpp b/src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.cpp index 15d1bd99..05fb85c5 100644 --- a/src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.cpp +++ b/src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.cpp @@ -107,7 +107,7 @@ QGeoTiledMappingManagerEngineNokia::QGeoTiledMappingManagerEngineNokia( } else { // managerName() is not yet set, we have to hardcode the plugin name below cacheDir = QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation) - + QLatin1String("/QtLocation/nokia"); + + QLatin1String("/QtLocation/here"); } QGeoTileCache *tileCache = createTileCacheWithDir(cacheDir); @@ -266,10 +266,10 @@ void QGeoTiledMappingManagerEngineNokia::updateVersion(const QJsonObject &newVer void QGeoTiledMappingManagerEngineNokia::saveMapVersion() { QDir saveDir(tileCache()->directory()); - QFile saveFile(saveDir.filePath(QStringLiteral("nokia_version"))); + QFile saveFile(saveDir.filePath(QStringLiteral("here_version"))); if (!saveFile.open(QIODevice::WriteOnly)) { - qWarning("Failed to write nokia map version."); + qWarning("Failed to write here/nokia map version."); return; } @@ -281,10 +281,10 @@ void QGeoTiledMappingManagerEngineNokia::loadMapVersion() { QDir saveDir(tileCache()->directory()); - QFile loadFile(saveDir.filePath(QStringLiteral("nokia_version"))); + QFile loadFile(saveDir.filePath(QStringLiteral("here_version"))); if (!loadFile.open(QIODevice::ReadOnly)) { - qWarning("Failed to read nokia map version."); + qWarning("Failed to read here/nokia map version."); return; } |