summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/embedded/lightmaps/slippymap.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/embedded/lightmaps/slippymap.cpp b/examples/embedded/lightmaps/slippymap.cpp
index 9acbd9ecb5..f97896d497 100644
--- a/examples/embedded/lightmaps/slippymap.cpp
+++ b/examples/embedded/lightmaps/slippymap.cpp
@@ -90,8 +90,7 @@ SlippyMap::SlippyMap(QObject *parent)
m_emptyTile.fill(Qt::lightGray);
QNetworkDiskCache *cache = new QNetworkDiskCache;
- cache->setCacheDirectory(QDesktopServices::storageLocation
- (QDesktopServices::CacheLocation));
+ cache->setCacheDirectory(QStandardPaths::writableLocation(QStandardPaths::CacheLocation));
m_manager.setCache(cache);
connect(&m_manager, SIGNAL(finished(QNetworkReply*)),
this, SLOT(handleNetworkData(QNetworkReply*)));