From e2ad2e9d9821366566380028f35799bd1e5117e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 5 Mar 2019 23:05:50 +0100 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 0abaa8be..ec727080 100644 --- a/src/map/tileloader.cpp +++ b/src/map/tileloader.cpp @@ -130,7 +130,7 @@ void TileLoader::loadTilesSync(QVector &list) for (int i = 0; i < tl.size(); i++) { Tile *t = tl[i]; QString file = tileFile(*t); - if (QFileInfo::exists(file)) + if (QFileInfo(file).exists()) imgs.append(TileImage(file, t)); } } diff --git a/src/map/wms.cpp b/src/map/wms.cpp index 03443600..fafc3fe3 100644 --- a/src/map/wms.cpp +++ b/src/map/wms.cpp @@ -264,7 +264,7 @@ bool WMS::getCapabilities(const QString &url, const QString &file, if (d.get(dl, authorization)) wait.exec(); - if (!QFileInfo::exists(file)) { + if (!QFileInfo(file).exists()) { _errorString = "Error downloading capabilities XML file"; return false; } @@ -277,7 +277,7 @@ WMS::WMS(const QString &file, const WMS::Setup &setup) : _valid(false) QString capaUrl = QString("%1%2service=WMS&request=GetCapabilities") .arg(setup.url(), setup.url().contains('?') ? "&" : "?"); - 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 b01cd293..8ca0523b 100644 --- a/src/map/wmts.cpp +++ b/src/map/wmts.cpp @@ -305,7 +305,7 @@ bool WMTS::downloadCapabilities(const QString &url, const QString &file, if (d.get(dl, authorization)) wait.exec(); - if (!QFileInfo::exists(file)) { + if (!QFileInfo(file).exists()) { _errorString = "Error downloading capabilities XML file"; return false; } @@ -319,7 +319,7 @@ WMTS::WMTS(const QString &file, const WMTS::Setup &setup) : _valid(false) "%1%2service=WMTS&Version=1.0.0&request=GetCapabilities").arg(setup.url(), setup.url().contains('?') ? "&" : "?")); - if (!url.isLocalFile() && !QFileInfo::exists(file)) + if (!url.isLocalFile() && !QFileInfo(file).exists()) if (!downloadCapabilities(url.toString(), file, setup.authorization())) return;