[FEATURE] Add keyboard shortcuts for composer zoom in/out/full, group… …

This commit is contained in:
nyalldawson 2013-10-13 08:43:41 +11:00 committed by Marco Hugentobler
parent 48b4680870
commit 6950972d3d
2 changed files with 19 additions and 1 deletions

View File

@ -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 );

View File

@ -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>