diff options
-rw-r--r-- | mobile-widgets/qmlmapwidgethelper.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmapwidgethelper.cpp b/mobile-widgets/qmlmapwidgethelper.cpp index 569bd9f68..d0229f020 100644 --- a/mobile-widgets/qmlmapwidgethelper.cpp +++ b/mobile-widgets/qmlmapwidgethelper.cpp @@ -249,6 +249,7 @@ QString MapWidgetHelper::pluginObject() str += " id: mapPlugin;"; str += " name: 'googlemaps';"; str += " PluginParameter { name: 'googlemaps.maps.language'; value: '%lang%' }"; + str += " PluginParameter { name: 'googlemaps.cachefolder'; value: '%cacheFolder%' }"; str += " Component.onCompleted: {"; str += " if (availableServiceProviders.indexOf(name) === -1) {"; str += " console.warn('MapWidget.qml: cannot find a plugin named: ' + name);"; @@ -257,5 +258,7 @@ QString MapWidgetHelper::pluginObject() str += "}"; QString lang = uiLanguage(NULL).replace('_', '-'); str.replace("%lang%", lang); + QString cacheFolder = QString(system_default_directory()).append("/googlemaps"); + str.replace("%cacheFolder%", cacheFolder.replace("\\", "/")); return str; } |