Less debug noise

This commit is contained in:
Matthias Kuhn 2016-09-09 13:47:59 +02:00
parent 9d9ce200ae
commit b20d3b7e2d
3 changed files with 6 additions and 7 deletions

View File

@ -85,12 +85,12 @@ void QgsUndoWidget::indexChanged( int curIndx )
if ( offset != 0 )
{
QgsDebugMsg( QString( "curIndx : %1" ).arg( curIndx ) );
QgsDebugMsg( QString( "offset : %1" ).arg( offset ) );
QgsDebugMsg( QString( "curCount: %1" ).arg( curCount ) );
QgsDebugMsgLevel( QString( "curIndx : %1" ).arg( curIndx ), 4 );
QgsDebugMsgLevel( QString( "offset : %1" ).arg( offset ), 4 );
QgsDebugMsgLevel( QString( "curCount: %1" ).arg( curCount ), 4 );
if ( lastRedo )
{
QgsDebugMsg( QString( "lastRedo: true" ) );
QgsDebugMsgLevel( QString( "lastRedo: true" ), 4 );
}
}
@ -100,7 +100,6 @@ void QgsUndoWidget::indexChanged( int curIndx )
{
if ( mMapCanvas )
{
QgsDebugMsg( QString( "trigger redraw" ) );
mMapCanvas->refresh();
}
}

View File

@ -53,7 +53,7 @@ bool QgsVectorLayerEditBuffer::isModified() const
void QgsVectorLayerEditBuffer::undoIndexChanged( int index )
{
QgsDebugMsg( QString( "undo index changed %1" ).arg( index ) );
QgsDebugMsgLevel( QString( "undo index changed %1" ).arg( index ), 4 );
Q_UNUSED( index );
emit layerModified();
}

View File

@ -33,7 +33,7 @@ QgsVectorLayerUndoCommandAddFeature::QgsVectorLayerUndoCommandAddFeature( QgsVec
//assign a temporary id to the feature (use negative numbers)
addedIdLowWaterMark--;
QgsDebugMsg( "Assigned feature id " + QString::number( addedIdLowWaterMark ) );
QgsDebugMsgLevel( "Assigned feature id " + QString::number( addedIdLowWaterMark ), 4 );
// Force a feature ID (to keep other functions in QGIS happy,
// providers will use their own new feature ID when we commit the new feature)