Skip to content

Commit

Permalink
Move composer undo buttons to layout menu
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14832 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Dec 3, 2010
1 parent 75c686b commit 43214b4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/app/composer/qgscomposer.cpp
Expand Up @@ -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 );
Expand Down
8 changes: 7 additions & 1 deletion src/ui/qgscomposerbase.ui
Expand Up @@ -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"/>
Expand Down Expand Up @@ -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">
Expand All @@ -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>
Expand Down

0 comments on commit 43214b4

Please sign in to comment.