Skip to content
Permalink
Browse files

Add zoom to width as menu item too

  • Loading branch information
nyalldawson committed Jul 11, 2017
1 parent c25aab1 commit 06976d0ec2972a5f05c13d7396a274aa007b5d2b
Showing with 7 additions and 0 deletions.
  1. +1 −0 src/app/layout/qgslayoutdesignerdialog.cpp
  2. +6 −0 src/ui/layout/qgslayoutdesignerbase.ui
@@ -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 );
@@ -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"/>

0 comments on commit 06976d0

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