Unverified Commit 9c25636c authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #6542 from DonLakeFlyer/Logging

Add more logging
parents e8ec1f3c 2a0852cb
......@@ -665,6 +665,8 @@ void TerrainPolyPathQuery::requestData(const QVariantList& polyPath)
void TerrainPolyPathQuery::requestData(const QList<QGeoCoordinate>& polyPath)
{
qCDebug(TerrainQueryLog) << "TerrainPolyPathQuery::requestData count" << polyPath.count();
// Kick off first request
_rgCoords = polyPath;
_curIndex = 0;
......@@ -673,6 +675,8 @@ void TerrainPolyPathQuery::requestData(const QList<QGeoCoordinate>& polyPath)
void TerrainPolyPathQuery::_terrainDataReceived(bool success, const TerrainPathQuery::PathHeightInfo_t& pathHeightInfo)
{
qCDebug(TerrainQueryLog) << "TerrainPolyPathQuery::_terrainDataReceived success:_curIndex" << success << _curIndex;
if (!success) {
_rgPathHeightInfo.clear();
emit terrainData(false /* success */, _rgPathHeightInfo);
......@@ -683,6 +687,7 @@ void TerrainPolyPathQuery::_terrainDataReceived(bool success, const TerrainPathQ
if (++_curIndex >= _rgCoords.count() - 1) {
// We've finished all requests
qCDebug(TerrainQueryLog) << "TerrainPolyPathQuery::_terrainDataReceived complete";
emit terrainData(true /* success */, _rgPathHeightInfo);
} else {
_pathQuery.requestData(_rgCoords[_curIndex], _rgCoords[_curIndex+1]);
......
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