Skip to content

Commit 66a4984

Browse files
author
jef
committed
fix debugging output for Qt<4.5
git-svn-id: http://svn.osgeo.org/qgis/trunk@15145 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 2e5e3a1 commit 66a4984

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/providers/wms/qgswmsprovider.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,12 +699,20 @@ void QgsWmsProvider::tileReplyFinished()
699699
int tileNo = reply->request().attribute( static_cast<QNetworkRequest::Attribute>( QNetworkRequest::User + 1 ) ).toInt();
700700
QRectF r = reply->request().attribute( static_cast<QNetworkRequest::Attribute>( QNetworkRequest::User + 2 ) ).toRectF();
701701

702+
#if QT_VERSION >= 0x40500
702703
QgsDebugMsg( QString( "tile reply %1 (%2) tile:%3 rect:%4,%5 %6x%7) fromcache:%8 error:%9" )
703704
.arg( tileReqNo ).arg( mTileReqNo ).arg( tileNo )
704705
.arg( r.left(), 0, 'f' ).arg( r.bottom(), 0, 'f' ).arg( r.width(), 0, 'f' ).arg( r.height(), 0, 'f' )
705706
.arg( fromCache )
706707
.arg( reply->errorString() )
707708
);
709+
#else
710+
QgsDebugMsg( QString( "tile reply %1 (%2) tile:%3 rect:%4,%5 %6x%7) error:%8" )
711+
.arg( tileReqNo ).arg( mTileReqNo ).arg( tileNo )
712+
.arg( r.left(), 0, 'f' ).arg( r.bottom(), 0, 'f' ).arg( r.width(), 0, 'f' ).arg( r.height(), 0, 'f' )
713+
.arg( reply->errorString() )
714+
);
715+
#endif
708716

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

0 commit comments

Comments
 (0)