Skip to content

Commit

Permalink
Use layer tree view in legend interface implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed May 21, 2014
1 parent 90a88ea commit d26bdf7
Show file tree
Hide file tree
Showing 7 changed files with 207 additions and 103 deletions.
2 changes: 1 addition & 1 deletion src/app/composer/qgscomposerlegendwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d26bdf7

Please sign in to comment.