[QGIS Commit] r15145 - trunk/qgis/src/providers/wms

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Feb 9 03:05:11 EST 2011


Author: jef
Date: 2011-02-09 00:05:11 -0800 (Wed, 09 Feb 2011)
New Revision: 15145

Modified:
   trunk/qgis/src/providers/wms/qgswmsprovider.cpp
Log:
fix debugging output for Qt<4.5

Modified: trunk/qgis/src/providers/wms/qgswmsprovider.cpp
===================================================================
--- trunk/qgis/src/providers/wms/qgswmsprovider.cpp	2011-02-08 17:16:32 UTC (rev 15144)
+++ trunk/qgis/src/providers/wms/qgswmsprovider.cpp	2011-02-09 08:05:11 UTC (rev 15145)
@@ -699,12 +699,20 @@
   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 )
   {



More information about the QGIS-commit mailing list