Skip to content
Permalink
Browse files
fix #2592
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13167 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Mar 26, 2010
1 parent 01f8f24 commit e636bdd24a4c24992bd42305a616427c113457e5
Showing with 7 additions and 0 deletions.
  1. +6 −0 src/providers/wms/qgswmsprovider.cpp
  2. +1 −0 src/providers/wms/qgswmsprovider.h
@@ -527,6 +527,7 @@ QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, i
QgsDebugMsg( QString( "getmap: %1" ).arg( url ) );
cacheReply = smNAM->get( QNetworkRequest( url ) );
connect( cacheReply, SIGNAL( finished() ), this, SLOT( cacheReplyFinished() ) );
connect( cacheReply, SIGNAL( downloadProgress( qint64, qint64 ) ), this, SLOT( cacheReplyProgress( qint64, qint64 ) ) );

mWaiting = true;

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

void QgsWmsProvider::cacheReplyProgress( qint64 bytesReceived, qint64 bytesTotal )
{
emit statusChanged( tr( "%1 of %2 bytes of map downloaded." ).arg( bytesReceived ).arg( bytesTotal < 0 ? QString( "unknown number of" ) : QString::number( bytesTotal ) ) );
}

bool QgsWmsProvider::parseCapabilitiesDom( QByteArray const &xml, QgsWmsCapabilitiesProperty& capabilitiesProperty )
{
QgsDebugMsg( "entering." );
@@ -594,6 +594,7 @@ class QgsWmsProvider : public QgsRasterDataProvider

private slots:
void cacheReplyFinished();
void cacheReplyProgress( qint64, qint64 );
void capabilitiesReplyFinished();
void capabilitiesReplyProgress( qint64, qint64 );
void identifyReplyFinished();

0 comments on commit e636bdd

Please sign in to comment.