[QGIS Commit] r13167 - trunk/qgis/src/providers/wms
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Fri Mar 26 19:57:58 EDT 2010
Author: jef
Date: 2010-03-26 19:57:57 -0400 (Fri, 26 Mar 2010)
New Revision: 13167
Modified:
trunk/qgis/src/providers/wms/qgswmsprovider.cpp
trunk/qgis/src/providers/wms/qgswmsprovider.h
Log:
fix #2592
Modified: trunk/qgis/src/providers/wms/qgswmsprovider.cpp
===================================================================
--- trunk/qgis/src/providers/wms/qgswmsprovider.cpp 2010-03-26 20:03:24 UTC (rev 13166)
+++ trunk/qgis/src/providers/wms/qgswmsprovider.cpp 2010-03-26 23:57:57 UTC (rev 13167)
@@ -527,6 +527,7 @@
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 @@
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." );
Modified: trunk/qgis/src/providers/wms/qgswmsprovider.h
===================================================================
--- trunk/qgis/src/providers/wms/qgswmsprovider.h 2010-03-26 20:03:24 UTC (rev 13166)
+++ trunk/qgis/src/providers/wms/qgswmsprovider.h 2010-03-26 23:57:57 UTC (rev 13167)
@@ -594,6 +594,7 @@
private slots:
void cacheReplyFinished();
+ void cacheReplyProgress( qint64, qint64 );
void capabilitiesReplyFinished();
void capabilitiesReplyProgress( qint64, qint64 );
void identifyReplyFinished();
More information about the QGIS-commit
mailing list