Skip to content
Permalink
Browse files
[layertree] Add expand/collapse all actions to legend menu
  • Loading branch information
wonder-sk committed May 26, 2014
1 parent 62e499e commit 629cd7a873e667fd4f5a12c0a86072be2a9b5bda
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/app/qgsapplayertreeviewmenuprovider.cpp
@@ -33,7 +33,9 @@ QMenu* QgsAppLayerTreeViewMenuProvider::createContextMenu()
// global 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
}
else if ( QgsLayerTreeNode* node = mView->layerTreeModel()->index2node( idx ) )

0 comments on commit 629cd7a

Please sign in to comment.