mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Add zoom to width as menu item too
This commit is contained in:
parent
c25aab16b0
commit
06976d0ec2
@ -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"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user