Skip to content

Commit 06976d0

Browse files
committedJul 11, 2017
Add zoom to width as menu item too
1 parent c25aab1 commit 06976d0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
 

‎src/app/layout/qgslayoutdesignerdialog.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ QgsLayoutDesignerDialog::QgsLayoutDesignerDialog( QWidget *parent, Qt::WindowFla
132132
connect( mActionZoomOut, &QAction::triggered, mView, &QgsLayoutView::zoomOut );
133133
connect( mActionZoomAll, &QAction::triggered, mView, &QgsLayoutView::zoomFull );
134134
connect( mActionZoomActual, &QAction::triggered, mView, &QgsLayoutView::zoomActual );
135+
connect( mActionZoomToWidth, &QAction::triggered, mView, &QgsLayoutView::zoomWidth );
135136

136137
//create status bar labels
137138
mStatusCursorXLabel = new QLabel( mStatusBar );

‎src/ui/layout/qgslayoutdesignerbase.ui

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
<addaction name="mActionZoomOut"/>
106106
<addaction name="mActionZoomActual"/>
107107
<addaction name="mActionZoomAll"/>
108+
<addaction name="mActionZoomToWidth"/>
108109
</widget>
109110
<addaction name="mLayoutMenu"/>
110111
<addaction name="mMenuView"/>
@@ -247,6 +248,11 @@
247248
<string>Ctrl+1</string>
248249
</property>
249250
</action>
251+
<action name="mActionZoomToWidth">
252+
<property name="text">
253+
<string>Zoom to Width</string>
254+
</property>
255+
</action>
250256
</widget>
251257
<resources>
252258
<include location="../../../images/images.qrc"/>

0 commit comments

Comments
 (0)
Please sign in to comment.