mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 19:55:53 +01:00
Fixed QT4 build
This commit is contained in:
parent
c4915891e7
commit
259a15332e
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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))
|
||||||
|
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user