Skip to content
Permalink
Browse files

Add undo/redo to layout context menu

Refs #1830
  • Loading branch information
nyalldawson committed Oct 10, 2017
1 parent 2bba805 commit 183da9f264f85a9182324f5f410d1a6fabad9718
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/app/layout/qgslayoutappmenuprovider.cpp
@@ -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() )
{

0 comments on commit 183da9f

Please sign in to comment.
You can’t perform that action at this time.