Skip to content

Commit

Permalink
Add undo/redo to layout context menu
Browse files Browse the repository at this point in the history
Refs #1830
  • Loading branch information
nyalldawson committed Oct 10, 2017
1 parent 2bba805 commit 183da9f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/layout/qgslayoutappmenuprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ QMenu *QgsLayoutAppMenuProvider::createContextMenu( QWidget *parent, QgsLayout *
{
QMenu *menu = new QMenu( parent );

//undo/redo
menu->addAction( layout->undoStack()->stack()->createUndoAction( menu ) );
menu->addAction( layout->undoStack()->stack()->createRedoAction( menu ) );
menu->addSeparator();


const QList< QgsLayoutItem * > selectedItems = layout->selectedLayoutItems();
if ( !selectedItems.empty() )
{
Expand Down

0 comments on commit 183da9f

Please sign in to comment.