Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Build fixes
  • Loading branch information
wonder-sk committed Jan 20, 2021
1 parent 7e07179 commit c639bc7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/core/qgstiledownloadmanager.cpp
Expand Up @@ -20,9 +20,12 @@
#include "qgslogger.h"
#include "qgsnetworkaccessmanager.h"

#include <QElapsedTimer>
#include <QNetworkReply>


/// @cond PRIVATE

QgsTileDownloadManagerWorker::QgsTileDownloadManagerWorker( QgsTileDownloadManager *manager, QObject *parent )
: QObject( parent )
, mManager( manager )
Expand Down Expand Up @@ -135,6 +138,7 @@ void QgsTileDownloadManagerReplyWorkerObject::replyFinished()
}
}

/// @endcond

///

Expand Down Expand Up @@ -204,7 +208,7 @@ bool QgsTileDownloadManager::hasPendingRequests() const

bool QgsTileDownloadManager::waitForPendingRequests( int msec )
{
QTime t;
QElapsedTimer t;
t.start();

while ( msec == -1 || t.elapsed() < msec )
Expand Down Expand Up @@ -305,7 +309,11 @@ void QgsTileDownloadManager::removeEntry( const QNetworkRequest &request )

void QgsTileDownloadManager::signalQueueModified()
{
#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0)
QMetaObject::invokeMethod( mWorker, "queueUpdated", Qt::QueuedConnection );
#else
QMetaObject::invokeMethod( mWorker, &QgsTileDownloadManagerWorker::queueUpdated, Qt::QueuedConnection );
#endif
}


Expand Down

0 comments on commit c639bc7

Please sign in to comment.