Skip to content

Commit b7830b8

Browse files
author
jef
committed
reduce attribute table debugging noise
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14739 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 5b69653 commit b7830b8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/app/attributetable/qgsattributetablemodel.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ QgsAttributeTableModel::QgsAttributeTableModel( QgsVectorLayer *theLayer, QObjec
4545

4646
bool QgsAttributeTableModel::featureAtId( int fid ) const
4747
{
48-
QgsDebugMsg( QString( "loading feature %1" ).arg( fid ) );
48+
QgsDebugMsgLevel( QString( "loading feature %1" ).arg( fid ), 3 );
4949

5050
if ( fid == std::numeric_limits<int>::min() )
5151
return false;
@@ -55,7 +55,7 @@ bool QgsAttributeTableModel::featureAtId( int fid ) const
5555

5656
void QgsAttributeTableModel::featureDeleted( int fid )
5757
{
58-
QgsDebugMsg( QString( "deleted fid=%1 => row=%2" ).arg( fid ).arg( idToRow( fid ) ) );
58+
QgsDebugMsgLevel( QString( "deleted fid=%1 => row=%2" ).arg( fid ).arg( idToRow( fid ) ), 3 );
5959

6060
int row = idToRow( fid );
6161

@@ -66,7 +66,7 @@ void QgsAttributeTableModel::featureDeleted( int fid )
6666

6767
bool QgsAttributeTableModel::removeRows( int row, int count, const QModelIndex &parent )
6868
{
69-
QgsDebugMsg( QString( "remove %2 rows at %1" ).arg( row ).arg( count ) );
69+
QgsDebugMsgLevel( QString( "remove %2 rows at %1" ).arg( row ).arg( count ), 3 );
7070

7171
// clean old references
7272
for ( int i = row; i < row + count; i++ )
@@ -86,12 +86,12 @@ bool QgsAttributeTableModel::removeRows( int row, int count, const QModelIndex &
8686
}
8787

8888
#ifdef QGISDEBUG
89-
QgsDebugMsg( "id->row" );
89+
QgsDebugMsgLevel( "id->row", 4 );
9090
QHash<int, int>::iterator it;
9191
for ( it = mIdRowMap.begin(); it != mIdRowMap.end(); ++it )
9292
QgsDebugMsg( QString( "%1->%2" ).arg( it.key() ).arg( *it ) );
9393

94-
QgsDebugMsg( "row->id" );
94+
QgsDebugMsgLevel( "row->id", 4 );
9595
for ( it = mRowIdMap.begin(); it != mRowIdMap.end(); ++it )
9696
QgsDebugMsg( QString( "%1->%2" ).arg( it.key() ).arg( *it ) );
9797
#endif
@@ -101,7 +101,7 @@ bool QgsAttributeTableModel::removeRows( int row, int count, const QModelIndex &
101101

102102
void QgsAttributeTableModel::featureAdded( int fid, bool newOperation )
103103
{
104-
QgsDebugMsg( QString( "feature %1 added (%2, rows %3, ids %4)" ).arg( fid ).arg( newOperation ).arg( mRowIdMap.size() ).arg( mIdRowMap.size() ) );
104+
QgsDebugMsgLevel( QString( "feature %1 added (%2, rows %3, ids %4)" ).arg( fid ).arg( newOperation ).arg( mRowIdMap.size() ).arg( mIdRowMap.size() ), 3 );
105105

106106
int n = mRowIdMap.size();
107107
if ( newOperation )

0 commit comments

Comments
 (0)