Skip to content

Commit

Permalink
Put the layer source text in the legend as a tooltip.
Browse files Browse the repository at this point in the history
Resolves (for now) ticket #75


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5346 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Apr 22, 2006
1 parent 18dfefd commit 09ceb82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/legend/qgslegend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ void QgsLegend::addLayer( QgsMapLayer * layer )
QgsLegendLayerFileGroup * llfgroup = new QgsLegendLayerFileGroup(llayer,QString("Files"));
QgsLegendLayerFile * llfile = new QgsLegendLayerFile(llfgroup, QgsLegendLayerFile::nameFromLayer(layer), layer);
llayer->setLayerTypeIcon();
llayer->setToolTip(0, layer->source());

//set the correct check states
blockSignals(true);
Expand Down

0 comments on commit 09ceb82

Please sign in to comment.