Skip to content
Permalink
Browse files
[layertree] Show public source tooltip for layers
  • Loading branch information
wonder-sk committed May 22, 2014
1 parent 3c00421 commit 46086b258f9f7b5d05f6cab534e06c1785189720
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/gui/layertree/qgslayertreemodel.cpp
@@ -238,6 +238,14 @@ QVariant QgsLayerTreeModel::data( const QModelIndex &index, int role ) const
f.setBold( true );
return f;
}
else if ( role == Qt::ToolTipRole )
{
if ( QgsLayerTree::isLayer( node ) )
{
if ( QgsMapLayer* layer = QgsLayerTree::toLayer( node )->layer() )
return layer->publicSource();
}
}

return QVariant();
}

0 comments on commit 46086b2

Please sign in to comment.