mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
[FEATURE] Add keyboard shortcuts for composer zoom in/out/full, group… …
This commit is contained in:
parent
48b4680870
commit
6950972d3d
@ -244,6 +244,9 @@ QgsComposer::QgsComposer( QgisApp *qgis, const QString& title )
|
||||
editMenu->addAction( mActionSelectNextAbove );
|
||||
|
||||
QMenu *viewMenu = menuBar()->addMenu( tr( "View" ) );
|
||||
//Ctrl+= should also trigger zoom in
|
||||
QShortcut* ctrlEquals = new QShortcut( QKeySequence( "Ctrl+=" ), this );
|
||||
connect( ctrlEquals, SIGNAL( activated() ), mActionZoomIn, SLOT( trigger() ) );
|
||||
viewMenu->addAction( mActionZoomIn );
|
||||
viewMenu->addAction( mActionZoomOut );
|
||||
viewMenu->addAction( mActionZoomAll );
|
||||
|
@ -149,6 +149,9 @@
|
||||
<property name="toolTip">
|
||||
<string>Zoom full</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+0</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionZoomIn">
|
||||
<property name="icon">
|
||||
@ -161,6 +164,9 @@
|
||||
<property name="toolTip">
|
||||
<string>Zoom in</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl++</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionZoomOut">
|
||||
<property name="icon">
|
||||
@ -173,6 +179,9 @@
|
||||
<property name="toolTip">
|
||||
<string>Zoom out</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+-</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionAddNewMap">
|
||||
<property name="icon">
|
||||
@ -303,6 +312,9 @@
|
||||
<property name="toolTip">
|
||||
<string>Group items</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+G</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionUngroupItems">
|
||||
<property name="text">
|
||||
@ -311,6 +323,9 @@
|
||||
<property name="toolTip">
|
||||
<string>Ungroup items</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+Shift+G</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionRaiseItems">
|
||||
<property name="text">
|
||||
@ -454,7 +469,7 @@
|
||||
</action>
|
||||
<action name="mActionUndo">
|
||||
<property name="icon">
|
||||
<iconset resource="../../images/images.qrc">
|
||||
<iconset>
|
||||
<normalon>:/images/themes/default/mActionUndo.png</normalon>
|
||||
</iconset>
|
||||
</property>
|
||||
|
Loading…
x
Reference in New Issue
Block a user