Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add item properties to context menu
  • Loading branch information
nyalldawson committed Nov 7, 2017
1 parent 3735c7f commit f69771c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/app/layout/qgslayoutappmenuprovider.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit f69771c

Please sign in to comment.