Skip to content

Commit

Permalink
Less verbose debug output in layer tree model
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Oct 31, 2014
1 parent 48af543 commit d366202
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/core/layertree/qgslayertreemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ QgsLayerTreeModel::QgsLayerTreeModel( QgsLayerTreeGroup* rootNode, QObject *pare
, mLegendMapViewDpi( 0 )
, mLegendMapViewScale( 0 )
{
QgsDebugCall;
connectToRootNode();

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

int QgsLayerTreeModel::columnCount( const QModelIndex &parent ) const
{
QgsDebugCall;
Q_UNUSED( parent );
return 1;
}
Expand Down Expand Up @@ -347,9 +345,6 @@ Qt::ItemFlags QgsLayerTreeModel::flags( const QModelIndex& index ) const

bool QgsLayerTreeModel::setData( const QModelIndex& index, const QVariant& value, int role )
{
QgsDebugCall;
QgsDebugMsg( QString( "setData( r=%1 c=%2 value=%3 role=%4 )" ).arg( index.row() ).arg( index.column() ).arg( value.toString() ).arg( role ) );

QgsLayerTreeModelLegendNode *sym = index2legendNode( index );
if ( sym )
{
Expand Down Expand Up @@ -443,7 +438,6 @@ static bool _isChildOfNodes( QgsLayerTreeNode* child, QList<QgsLayerTreeNode*> n

QList<QgsLayerTreeNode*> QgsLayerTreeModel::indexes2nodes( const QModelIndexList& list, bool skipInternal ) const
{
QgsDebugCall;
QList<QgsLayerTreeNode*> nodes;
foreach ( QModelIndex index, list )
{
Expand Down Expand Up @@ -491,7 +485,6 @@ QgsLayerTreeGroup*QgsLayerTreeModel::rootGroup() const

void QgsLayerTreeModel::setRootGroup( QgsLayerTreeGroup* newRootGroup )
{
QgsDebugCall;
beginResetModel();

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

void QgsLayerTreeModel::refreshLayerLegend( QgsLayerTreeLayer* nodeLayer )
{
QgsDebugCall;
// update title
QModelIndex idx = node2index( nodeLayer );
emit dataChanged( idx, idx );
Expand All @@ -529,13 +521,11 @@ void QgsLayerTreeModel::refreshLayerLegend( QgsLayerTreeLayer* nodeLayer )

QModelIndex QgsLayerTreeModel::currentIndex() const
{
QgsDebugCall;
return mCurrentIndex;
}

void QgsLayerTreeModel::setCurrentIndex( const QModelIndex& currentIndex )
{
QgsDebugCall;
QModelIndex oldIndex = mCurrentIndex;
mCurrentIndex = currentIndex;

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

void QgsLayerTreeModel::setLayerTreeNodeFont( int nodeType, const QFont& font )
{
QgsDebugCall;
if ( nodeType == QgsLayerTreeNode::NodeGroup )
{
if ( mFontGroup != font )
Expand All @@ -574,7 +563,6 @@ void QgsLayerTreeModel::setLayerTreeNodeFont( int nodeType, const QFont& font )

QFont QgsLayerTreeModel::layerTreeNodeFont( int nodeType ) const
{
QgsDebugCall;
if ( nodeType == QgsLayerTreeNode::NodeGroup )
return mFontGroup;
else if ( nodeType == QgsLayerTreeNode::NodeLayer )
Expand All @@ -588,7 +576,6 @@ QFont QgsLayerTreeModel::layerTreeNodeFont( int nodeType ) const

void QgsLayerTreeModel::setLegendFilterByScale( double scaleDenominator )
{
QgsDebugCall;
mLegendFilterByScale = scaleDenominator;

// this could be later done in more efficient way
Expand Down

0 comments on commit d366202

Please sign in to comment.