Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[layertree] Add expand/collapse all actions to legend menu
  • 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
Expand Up @@ -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 ) )
Expand Down

0 comments on commit 629cd7a

Please sign in to comment.