Skip to content

Commit d366202

Browse files
committedOct 31, 2014
Less verbose debug output in layer tree model
1 parent 48af543 commit d366202

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed
 

‎src/core/layertree/qgslayertreemodel.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ QgsLayerTreeModel::QgsLayerTreeModel( QgsLayerTreeGroup* rootNode, QObject *pare
4141
, mLegendMapViewDpi( 0 )
4242
, mLegendMapViewScale( 0 )
4343
{
44-
QgsDebugCall;
4544
connectToRootNode();
4645

4746
mFontLayer.setBold( true );
@@ -111,7 +110,6 @@ int QgsLayerTreeModel::rowCount( const QModelIndex &parent ) const
111110

112111
int QgsLayerTreeModel::columnCount( const QModelIndex &parent ) const
113112
{
114-
QgsDebugCall;
115113
Q_UNUSED( parent );
116114
return 1;
117115
}
@@ -347,9 +345,6 @@ Qt::ItemFlags QgsLayerTreeModel::flags( const QModelIndex& index ) const
347345

348346
bool QgsLayerTreeModel::setData( const QModelIndex& index, const QVariant& value, int role )
349347
{
350-
QgsDebugCall;
351-
QgsDebugMsg( QString( "setData( r=%1 c=%2 value=%3 role=%4 )" ).arg( index.row() ).arg( index.column() ).arg( value.toString() ).arg( role ) );
352-
353348
QgsLayerTreeModelLegendNode *sym = index2legendNode( index );
354349
if ( sym )
355350
{
@@ -443,7 +438,6 @@ static bool _isChildOfNodes( QgsLayerTreeNode* child, QList<QgsLayerTreeNode*> n
443438

444439
QList<QgsLayerTreeNode*> QgsLayerTreeModel::indexes2nodes( const QModelIndexList& list, bool skipInternal ) const
445440
{
446-
QgsDebugCall;
447441
QList<QgsLayerTreeNode*> nodes;
448442
foreach ( QModelIndex index, list )
449443
{
@@ -491,7 +485,6 @@ QgsLayerTreeGroup*QgsLayerTreeModel::rootGroup() const
491485

492486
void QgsLayerTreeModel::setRootGroup( QgsLayerTreeGroup* newRootGroup )
493487
{
494-
QgsDebugCall;
495488
beginResetModel();
496489

497490
disconnectFromRootNode();
@@ -508,7 +501,6 @@ void QgsLayerTreeModel::setRootGroup( QgsLayerTreeGroup* newRootGroup )
508501

509502
void QgsLayerTreeModel::refreshLayerLegend( QgsLayerTreeLayer* nodeLayer )
510503
{
511-
QgsDebugCall;
512504
// update title
513505
QModelIndex idx = node2index( nodeLayer );
514506
emit dataChanged( idx, idx );
@@ -529,13 +521,11 @@ void QgsLayerTreeModel::refreshLayerLegend( QgsLayerTreeLayer* nodeLayer )
529521

530522
QModelIndex QgsLayerTreeModel::currentIndex() const
531523
{
532-
QgsDebugCall;
533524
return mCurrentIndex;
534525
}
535526

536527
void QgsLayerTreeModel::setCurrentIndex( const QModelIndex& currentIndex )
537528
{
538-
QgsDebugCall;
539529
QModelIndex oldIndex = mCurrentIndex;
540530
mCurrentIndex = currentIndex;
541531

@@ -548,7 +538,6 @@ void QgsLayerTreeModel::setCurrentIndex( const QModelIndex& currentIndex )
548538

549539
void QgsLayerTreeModel::setLayerTreeNodeFont( int nodeType, const QFont& font )
550540
{
551-
QgsDebugCall;
552541
if ( nodeType == QgsLayerTreeNode::NodeGroup )
553542
{
554543
if ( mFontGroup != font )
@@ -574,7 +563,6 @@ void QgsLayerTreeModel::setLayerTreeNodeFont( int nodeType, const QFont& font )
574563

575564
QFont QgsLayerTreeModel::layerTreeNodeFont( int nodeType ) const
576565
{
577-
QgsDebugCall;
578566
if ( nodeType == QgsLayerTreeNode::NodeGroup )
579567
return mFontGroup;
580568
else if ( nodeType == QgsLayerTreeNode::NodeLayer )
@@ -588,7 +576,6 @@ QFont QgsLayerTreeModel::layerTreeNodeFont( int nodeType ) const
588576

589577
void QgsLayerTreeModel::setLegendFilterByScale( double scaleDenominator )
590578
{
591-
QgsDebugCall;
592579
mLegendFilterByScale = scaleDenominator;
593580

594581
// this could be later done in more efficient way

0 commit comments

Comments
 (0)
Please sign in to comment.