From 259a15332e2e579ee1869d6751e51ff46e13afa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 7 Apr 2018 23:04:26 +0200 Subject: [PATCH] Fixed QT4 build --- src/map/tileloader.cpp | 2 +- src/map/wms.cpp | 4 ++-- src/map/wmts.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/map/tileloader.cpp b/src/map/tileloader.cpp index 59f510b1..a768b2d9 100644 --- a/src/map/tileloader.cpp +++ b/src/map/tileloader.cpp @@ -64,7 +64,7 @@ void TileLoader::loadTilesSync(QList &list) if (t.pixmap().isNull()) { QString file = tileFile(t); - if (QFileInfo::exists(file)) + if (QFileInfo(file).exists()) loadTileFile(t, file); } } diff --git a/src/map/wms.cpp b/src/map/wms.cpp index 76e83459..d324cf72 100644 --- a/src/map/wms.cpp +++ b/src/map/wms.cpp @@ -265,7 +265,7 @@ bool WMS::getCapabilities(const QString &url, const QString &file, if (_downloader->get(dl, authorization)) wait.exec(); - if (QFileInfo::exists(file)) + if (QFileInfo(file).exists()) return true; else { _errorString = "Error downloading capabilities XML file"; @@ -278,7 +278,7 @@ WMS::WMS(const QString &file, const WMS::Setup &setup) : _valid(false) QString capaUrl = QString("%1?service=WMS&request=GetCapabilities") .arg(setup.url()); - if (!QFileInfo::exists(file)) + if (!QFileInfo(file).exists()) if (!getCapabilities(capaUrl, file, setup.authorization())) return; if (!parseCapabilities(file, setup)) diff --git a/src/map/wmts.cpp b/src/map/wmts.cpp index 41aa27c5..b237255a 100644 --- a/src/map/wmts.cpp +++ b/src/map/wmts.cpp @@ -291,7 +291,7 @@ bool WMTS::getCapabilities(const QString &url, const QString &file, if (_downloader->get(dl, authorization)) wait.exec(); - if (QFileInfo::exists(file)) + if (QFileInfo(file).exists()) return true; else { _errorString = "Error downloading capabilities XML file"; @@ -305,7 +305,7 @@ WMTS::WMTS(const QString &file, const WMTS::Setup &setup) : _valid(false) QString("%1?service=WMTS&Version=1.0.0&request=GetCapabilities") .arg(setup.url()); - if (!QFileInfo::exists(file)) + if (!QFileInfo(file).exists()) if (!getCapabilities(capaUrl, file, setup.authorization())) return; if (!parseCapabilities(file, setup))