1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 13:41:16 +01:00

Fixed QT4 build

This commit is contained in:
Martin Tůma 2018-04-07 23:04:26 +02:00
parent c4915891e7
commit 259a15332e
3 changed files with 5 additions and 5 deletions

View File

@ -64,7 +64,7 @@ void TileLoader::loadTilesSync(QList<Tile> &list)
if (t.pixmap().isNull()) { if (t.pixmap().isNull()) {
QString file = tileFile(t); QString file = tileFile(t);
if (QFileInfo::exists(file)) if (QFileInfo(file).exists())
loadTileFile(t, file); loadTileFile(t, file);
} }
} }

View File

@ -265,7 +265,7 @@ bool WMS::getCapabilities(const QString &url, const QString &file,
if (_downloader->get(dl, authorization)) if (_downloader->get(dl, authorization))
wait.exec(); wait.exec();
if (QFileInfo::exists(file)) if (QFileInfo(file).exists())
return true; return true;
else { else {
_errorString = "Error downloading capabilities XML file"; _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") QString capaUrl = QString("%1?service=WMS&request=GetCapabilities")
.arg(setup.url()); .arg(setup.url());
if (!QFileInfo::exists(file)) if (!QFileInfo(file).exists())
if (!getCapabilities(capaUrl, file, setup.authorization())) if (!getCapabilities(capaUrl, file, setup.authorization()))
return; return;
if (!parseCapabilities(file, setup)) if (!parseCapabilities(file, setup))

View File

@ -291,7 +291,7 @@ bool WMTS::getCapabilities(const QString &url, const QString &file,
if (_downloader->get(dl, authorization)) if (_downloader->get(dl, authorization))
wait.exec(); wait.exec();
if (QFileInfo::exists(file)) if (QFileInfo(file).exists())
return true; return true;
else { else {
_errorString = "Error downloading capabilities XML file"; _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") QString("%1?service=WMTS&Version=1.0.0&request=GetCapabilities")
.arg(setup.url()); .arg(setup.url());
if (!QFileInfo::exists(file)) if (!QFileInfo(file).exists())
if (!getCapabilities(capaUrl, file, setup.authorization())) if (!getCapabilities(capaUrl, file, setup.authorization()))
return; return;
if (!parseCapabilities(file, setup)) if (!parseCapabilities(file, setup))