Skip to content
Permalink
Browse files

fix debugging output for Qt<4.5

git-svn-id: http://svn.osgeo.org/qgis/trunk@15145 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Feb 9, 2011
1 parent 2e5e3a1 commit 66a49842d9b96737a9e198dceb2c3c6735b26a64
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/providers/wms/qgswmsprovider.cpp
@@ -699,12 +699,20 @@ void QgsWmsProvider::tileReplyFinished()
int tileNo = reply->request().attribute( static_cast<QNetworkRequest::Attribute>( QNetworkRequest::User + 1 ) ).toInt();
QRectF r = reply->request().attribute( static_cast<QNetworkRequest::Attribute>( QNetworkRequest::User + 2 ) ).toRectF();

#if QT_VERSION >= 0x40500
QgsDebugMsg( QString( "tile reply %1 (%2) tile:%3 rect:%4,%5 %6x%7) fromcache:%8 error:%9" )
.arg( tileReqNo ).arg( mTileReqNo ).arg( tileNo )
.arg( r.left(), 0, 'f' ).arg( r.bottom(), 0, 'f' ).arg( r.width(), 0, 'f' ).arg( r.height(), 0, 'f' )
.arg( fromCache )
.arg( reply->errorString() )
);
#else
QgsDebugMsg( QString( "tile reply %1 (%2) tile:%3 rect:%4,%5 %6x%7) error:%8" )
.arg( tileReqNo ).arg( mTileReqNo ).arg( tileNo )
.arg( r.left(), 0, 'f' ).arg( r.bottom(), 0, 'f' ).arg( r.width(), 0, 'f' ).arg( r.height(), 0, 'f' )
.arg( reply->errorString() )
);
#endif

if ( reply->error() == QNetworkReply::NoError )
{

0 comments on commit 66a4984

Please sign in to comment.
You can’t perform that action at this time.