Commit b75e1b35 authored by Patrick José Pereira's avatar Patrick José Pereira

TerrainQuery: Add new errorOccurred for Qt 5.15 builds

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent a5160ba7
......@@ -127,7 +127,12 @@ void TerrainAirMapQuery::_sendQuery(const QString& path, const QUrlQuery& urlQue
connect(networkReply, &QNetworkReply::finished, this, &TerrainAirMapQuery::_requestFinished);
connect(networkReply, &QNetworkReply::sslErrors, this, &TerrainAirMapQuery::_sslErrors);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(networkReply, QOverload<QNetworkReply::NetworkError>::of(&QNetworkReply::error), this, &TerrainAirMapQuery::_requestError);
#else
connect(networkReply, &QNetworkReply::errorOccurred, this, &TerrainAirMapQuery::_requestError);
#endif
}
void TerrainAirMapQuery::_requestError(QNetworkReply::NetworkError code)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment