mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-18 19:52:09 +01:00
Fixed QT4 build
This commit is contained in:
parent
408ac22994
commit
e2ad2e9d98
@ -130,7 +130,7 @@ void TileLoader::loadTilesSync(QVector<Tile> &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));
|
||||
}
|
||||
}
|
||||
|
@ -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))
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user