Skip to content
Permalink
Browse files

Add item properties to context menu

  • Loading branch information
nyalldawson committed Oct 10, 2017
1 parent 3735c7f commit f69771cadf8a450bdc0c78eb3422875e6d6123e5
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/app/layout/qgslayoutappmenuprovider.cpp
@@ -99,6 +99,19 @@ QMenu *QgsLayoutAppMenuProvider::createContextMenu( QWidget *parent, QgsLayout *
}
} );
menu->addAction( removePageAction );

menu->addSeparator();
}

if ( !selectedItems.empty() )
{
QAction *itemPropertiesAction = new QAction( tr( "Item Properties…" ), menu );
QgsLayoutItem *item = selectedItems.at( 0 );
connect( itemPropertiesAction, &QAction::triggered, this, [this, item]()
{
mDesigner->showItemOptions( item, true );
} );
menu->addAction( itemPropertiesAction );
}

return menu;

0 comments on commit f69771c

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