Skip to content
Permalink
Browse files
Use layer tree view in legend interface implementation
  • Loading branch information
wonder-sk committed May 21, 2014
1 parent 90a88ea commit d26bdf7621da332eddf8ff56d5a88c50b7bcd3c7
@@ -922,7 +922,7 @@ void QgsComposerLegendWidget::updateLegend()


//and also group info
QgsAppLegendInterface legendIface( app->legend() );
QgsAppLegendInterface legendIface( app->layerTreeView() );
QList< GroupLayerInfo > groupInfo = legendIface.groupLayerRelationship();
mLegend->model()->setLayerSetAndGroups( layerIdList, groupInfo );
mLegend->endCommand();

0 comments on commit d26bdf7

Please sign in to comment.