[QGIS Commit] r14739 - trunk/qgis/src/app/attributetable

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon Nov 22 13:53:46 EST 2010


Author: jef
Date: 2010-11-22 10:53:46 -0800 (Mon, 22 Nov 2010)
New Revision: 14739

Modified:
   trunk/qgis/src/app/attributetable/qgsattributetablemodel.cpp
Log:
reduce attribute table debugging noise

Modified: trunk/qgis/src/app/attributetable/qgsattributetablemodel.cpp
===================================================================
--- trunk/qgis/src/app/attributetable/qgsattributetablemodel.cpp	2010-11-22 18:53:12 UTC (rev 14738)
+++ trunk/qgis/src/app/attributetable/qgsattributetablemodel.cpp	2010-11-22 18:53:46 UTC (rev 14739)
@@ -45,7 +45,7 @@
 
 bool QgsAttributeTableModel::featureAtId( int fid ) const
 {
-  QgsDebugMsg( QString( "loading feature %1" ).arg( fid ) );
+  QgsDebugMsgLevel( QString( "loading feature %1" ).arg( fid ), 3 );
 
   if ( fid == std::numeric_limits<int>::min() )
     return false;
@@ -55,7 +55,7 @@
 
 void QgsAttributeTableModel::featureDeleted( int fid )
 {
-  QgsDebugMsg( QString( "deleted fid=%1 => row=%2" ).arg( fid ).arg( idToRow( fid ) ) );
+  QgsDebugMsgLevel( QString( "deleted fid=%1 => row=%2" ).arg( fid ).arg( idToRow( fid ) ), 3 );
 
   int row = idToRow( fid );
 
@@ -66,7 +66,7 @@
 
 bool QgsAttributeTableModel::removeRows( int row, int count, const QModelIndex &parent )
 {
-  QgsDebugMsg( QString( "remove %2 rows at %1" ).arg( row ).arg( count ) );
+  QgsDebugMsgLevel( QString( "remove %2 rows at %1" ).arg( row ).arg( count ), 3 );
 
   // clean old references
   for ( int i = row; i < row + count; i++ )
@@ -86,12 +86,12 @@
   }
 
 #ifdef QGISDEBUG
-  QgsDebugMsg( "id->row" );
+  QgsDebugMsgLevel( "id->row", 4 );
   QHash<int, int>::iterator it;
   for ( it = mIdRowMap.begin(); it != mIdRowMap.end(); ++it )
     QgsDebugMsg( QString( "%1->%2" ).arg( it.key() ).arg( *it ) );
 
-  QgsDebugMsg( "row->id" );
+  QgsDebugMsgLevel( "row->id", 4 );
   for ( it = mRowIdMap.begin(); it != mRowIdMap.end(); ++it )
     QgsDebugMsg( QString( "%1->%2" ).arg( it.key() ).arg( *it ) );
 #endif
@@ -101,7 +101,7 @@
 
 void QgsAttributeTableModel::featureAdded( int fid, bool newOperation )
 {
-  QgsDebugMsg( QString( "feature %1 added (%2, rows %3, ids %4)" ).arg( fid ).arg( newOperation ).arg( mRowIdMap.size() ).arg( mIdRowMap.size() ) );
+  QgsDebugMsgLevel( QString( "feature %1 added (%2, rows %3, ids %4)" ).arg( fid ).arg( newOperation ).arg( mRowIdMap.size() ).arg( mIdRowMap.size() ), 3 );
 
   int n = mRowIdMap.size();
   if ( newOperation )



More information about the QGIS-commit mailing list