Add zoom to width as menu item too

This commit is contained in:
Nyall Dawson 2017-07-11 12:59:45 +10:00
parent c25aab16b0
commit 06976d0ec2
2 changed files with 7 additions and 0 deletions

View File

@ -132,6 +132,7 @@ QgsLayoutDesignerDialog::QgsLayoutDesignerDialog( QWidget *parent, Qt::WindowFla
connect( mActionZoomOut, &QAction::triggered, mView, &QgsLayoutView::zoomOut );
connect( mActionZoomAll, &QAction::triggered, mView, &QgsLayoutView::zoomFull );
connect( mActionZoomActual, &QAction::triggered, mView, &QgsLayoutView::zoomActual );
connect( mActionZoomToWidth, &QAction::triggered, mView, &QgsLayoutView::zoomWidth );
//create status bar labels
mStatusCursorXLabel = new QLabel( mStatusBar );

View File

@ -105,6 +105,7 @@
<addaction name="mActionZoomOut"/>
<addaction name="mActionZoomActual"/>
<addaction name="mActionZoomAll"/>
<addaction name="mActionZoomToWidth"/>
</widget>
<addaction name="mLayoutMenu"/>
<addaction name="mMenuView"/>
@ -247,6 +248,11 @@
<string>Ctrl+1</string>
</property>
</action>
<action name="mActionZoomToWidth">
<property name="text">
<string>Zoom to Width</string>
</property>
</action>
</widget>
<resources>
<include location="../../../images/images.qrc"/>