We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 287cce0 commit cca0003Copy full SHA for cca0003
src/core/composer/qgslegendmodel.cpp
@@ -440,6 +440,11 @@ void QgsLegendModel::addLayer( QgsMapLayer* theMapLayer )
440
}
441
442
QgsComposerLayerItem* layerItem = new QgsComposerLayerItem( theMapLayer->name() );
443
+ if ( theMapLayer->title() != "" )
444
+ {
445
+ layerItem->setText( theMapLayer->title() );
446
+ layerItem->setUserText( theMapLayer->title() );
447
+ }
448
layerItem->setLayerID( theMapLayer->id() );
449
layerItem->setDefaultStyle();
450
layerItem->setFlags( Qt::ItemIsEnabled | Qt::ItemIsSelectable );
0 commit comments