Fix compilation for Qt5: Avoid deprecated API

Change-Id: Iba11d33dd4d81ed1a460dd3237cd1bb9e1ace106
Reviewed-by: Jason Barron <jason.barron@digia.com>
This commit is contained in:
aavit 2012-09-26 12:42:39 +02:00 committed by The Qt Project
parent 9e9495b166
commit d535c910e4

View File

@ -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*)));