Skip to content

Commit c15058b

Browse files
author
jef
committed
fix #2592
git-svn-id: http://svn.osgeo.org/qgis/trunk@13167 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 6977385 commit c15058b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/providers/wms/qgswmsprovider.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, i
527527
QgsDebugMsg( QString( "getmap: %1" ).arg( url ) );
528528
cacheReply = smNAM->get( QNetworkRequest( url ) );
529529
connect( cacheReply, SIGNAL( finished() ), this, SLOT( cacheReplyFinished() ) );
530+
connect( cacheReply, SIGNAL( downloadProgress( qint64, qint64 ) ), this, SLOT( cacheReplyProgress( qint64, qint64 ) ) );
530531

531532
mWaiting = true;
532533

@@ -933,6 +934,11 @@ void QgsWmsProvider::capabilitiesReplyProgress( qint64 bytesReceived, qint64 byt
933934
emit statusChanged( tr( "%1 of %2 bytes of capabilities downloaded." ).arg( bytesReceived ).arg( bytesTotal < 0 ? QString( "unknown number of" ) : QString::number( bytesTotal ) ) );
934935
}
935936

937+
void QgsWmsProvider::cacheReplyProgress( qint64 bytesReceived, qint64 bytesTotal )
938+
{
939+
emit statusChanged( tr( "%1 of %2 bytes of map downloaded." ).arg( bytesReceived ).arg( bytesTotal < 0 ? QString( "unknown number of" ) : QString::number( bytesTotal ) ) );
940+
}
941+
936942
bool QgsWmsProvider::parseCapabilitiesDom( QByteArray const &xml, QgsWmsCapabilitiesProperty& capabilitiesProperty )
937943
{
938944
QgsDebugMsg( "entering." );

src/providers/wms/qgswmsprovider.h

+1
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,7 @@ class QgsWmsProvider : public QgsRasterDataProvider
594594

595595
private slots:
596596
void cacheReplyFinished();
597+
void cacheReplyProgress( qint64, qint64 );
597598
void capabilitiesReplyFinished();
598599
void capabilitiesReplyProgress( qint64, qint64 );
599600
void identifyReplyFinished();

0 commit comments

Comments
 (0)