Skip to content
Permalink
Browse files

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

…p… …
  • Loading branch information
nyalldawson authored and mhugent committed Oct 18, 2013
1 parent 48b4680 commit 6950972d3dc5703da88d2d5ec580d1a282e5b6d7
Showing with 19 additions and 1 deletion.
  1. +3 −0 src/app/composer/qgscomposer.cpp
  2. +16 −1 src/ui/qgscomposerbase.ui
@@ -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>

0 comments on commit 6950972

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