Skip to content
Permalink
Browse files

Move composer undo buttons to layout menu

git-svn-id: http://svn.osgeo.org/qgis/trunk@14832 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Dec 3, 2010
1 parent 39df5e6 commit 1d3b4f8f00b47677bbf2231f72b769fae9e237f9
Showing with 10 additions and 3 deletions.
  1. +3 −2 src/app/composer/qgscomposer.cpp
  2. +7 −1 src/ui/qgscomposerbase.ui
@@ -151,12 +151,13 @@ QgsComposer::QgsComposer( QgisApp *qgis, const QString& title ): QMainWindow(),
viewMenu->addAction( mActionZoomIn );
viewMenu->addAction( mActionZoomOut );
viewMenu->addAction( mActionZoomAll );
viewMenu->addAction( mActionUndo );
viewMenu->addAction( mActionRedo );
viewMenu->addSeparator();
viewMenu->addAction( mActionRefreshView );

QMenu *layoutMenu = menuBar()->addMenu( tr( "Layout" ) );
layoutMenu->addAction( mActionUndo );
layoutMenu->addAction( mActionRedo );
layoutMenu->addSeparator();
layoutMenu->addAction( mActionAddNewMap );
layoutMenu->addAction( mActionAddNewLabel );
layoutMenu->addAction( mActionAddNewScalebar );
@@ -163,9 +163,9 @@
<addaction name="mActionZoomIn"/>
<addaction name="mActionZoomOut"/>
<addaction name="mActionRefreshView"/>
<addaction name="separator"/>
<addaction name="mActionUndo"/>
<addaction name="mActionRedo"/>
<addaction name="separator"/>
<addaction name="mActionAddNewMap"/>
<addaction name="mActionAddImage"/>
<addaction name="mActionAddNewLabel"/>
@@ -493,6 +493,9 @@
<property name="toolTip">
<string>Revert last change</string>
</property>
<property name="shortcut">
<string>Ctrl+Z</string>
</property>
</action>
<action name="mActionRedo">
<property name="icon">
@@ -505,6 +508,9 @@
<property name="toolTip">
<string>Restore last change</string>
</property>
<property name="shortcut">
<string>Ctrl+Shift+Z</string>
</property>
</action>
</widget>
<tabstops>

0 comments on commit 1d3b4f8

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