Skip to content

Commit

Permalink
Add layout properties menu entry
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 7, 2017
1 parent 89f0ecd commit 6d93411
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/layout/qgslayoutdesignerdialog.cpp
Expand Up @@ -263,6 +263,10 @@ QgsLayoutDesignerDialog::QgsLayoutDesignerDialog( QWidget *parent, Qt::WindowFla
mGeneralPropertiesStack = new QgsPanelWidgetStack();
mGeneralDock->setWidget( mGeneralPropertiesStack );
mPanelsMenu->addAction( mGeneralDock->toggleViewAction() );
connect( mActionLayoutProperties, &QAction::triggered, this, [ = ]
{
mGeneralDock->setUserVisible( true );
} );

mItemDock = new QgsDockWidget( tr( "Item properties" ), this );
mItemDock->setObjectName( QStringLiteral( "ItemDock" ) );
Expand Down
7 changes: 7 additions & 0 deletions src/ui/layout/qgslayoutdesignerbase.ui
Expand Up @@ -90,7 +90,9 @@
<property name="title">
<string>&amp;Layout</string>
</property>
<addaction name="mActionLayoutProperties"/>
<addaction name="mActionAddPages"/>
<addaction name="separator"/>
<addaction name="mActionClose"/>
</widget>
<widget class="QMenu" name="mItemMenu">
Expand Down Expand Up @@ -388,6 +390,11 @@
<string>Clear guides</string>
</property>
</action>
<action name="mActionLayoutProperties">
<property name="text">
<string>Layout Properties…</string>
</property>
</action>
</widget>
<resources>
<include location="../../../images/images.qrc"/>
Expand Down

0 comments on commit 6d93411

Please sign in to comment.