Fix compilation for Qt5: Avoid deprecated API
Change-Id: Iba11d33dd4d81ed1a460dd3237cd1bb9e1ace106 Reviewed-by: Jason Barron <jason.barron@digia.com>
This commit is contained in:
parent
9e9495b166
commit
d535c910e4
@ -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*)));
|
||||
|
Loading…
Reference in New Issue
Block a user