summaryrefslogtreecommitdiffstats
path: root/examples/embedded/lightmaps/slippymap.cpp
diff options
context:
space:
mode:
authoraavit <eirik.aavitsland@digia.com>2012-09-26 12:42:39 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-26 18:52:14 +0200
commitd535c910e443b974f0070cea2b3b000190450268 (patch)
tree64b4faaa5a11bb21880bd55fe975875d5ed6ef6c /examples/embedded/lightmaps/slippymap.cpp
parent9e9495b166c541656c59984c89f48f14692c265a (diff)
Fix compilation for Qt5: Avoid deprecated API
Change-Id: Iba11d33dd4d81ed1a460dd3237cd1bb9e1ace106 Reviewed-by: Jason Barron <jason.barron@digia.com>
Diffstat (limited to 'examples/embedded/lightmaps/slippymap.cpp')
-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*)));