Skip to content

Commit

Permalink
[layertree] Add expand/collapse all actions to legend menu
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed May 26, 2014
1 parent 62e499e commit 629cd7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/qgsapplayertreeviewmenuprovider.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ QMenu* QgsAppLayerTreeViewMenuProvider::createContextMenu()
// global menu // global menu
menu->addAction( actions->actionAddGroup( menu ) ); menu->addAction( actions->actionAddGroup( menu ) );


// TODO: expand all, collapse all menu->addAction( QgsApplication::getThemeIcon( "/mActionExpandTree.png" ), tr( "&Expand All" ), mView, SLOT( expandAll() ) );
menu->addAction( QgsApplication::getThemeIcon( "/mActionCollapseTree.png" ), tr( "&Collapse All" ), mView, SLOT( collapseAll() ) );

// TODO: update drawing order // TODO: update drawing order
} }
else if ( QgsLayerTreeNode* node = mView->layerTreeModel()->index2node( idx ) ) else if ( QgsLayerTreeNode* node = mView->layerTreeModel()->index2node( idx ) )
Expand Down

0 comments on commit 629cd7a

Please sign in to comment.