Skip to content
Permalink
Browse files

[composer] Add some missing icons to menu items

  • Loading branch information
nyalldawson committed Jul 27, 2014
1 parent c2f74c2 commit 642ff94e119fc24d8cb7aaafe273b6d783b4c1f8
Showing with 20 additions and 0 deletions.
  1. +3 −0 src/app/composer/qgscomposer.cpp
  2. +17 −0 src/ui/qgscomposerbase.ui
3 src/app/composer/qgscomposer.cpp 100644 → 100755
@@ -226,16 +226,19 @@ QgsComposer::QgsComposer( QgisApp *qgis, const QString& title )
mActionCut = new QAction( tr( "Cu&t" ), this );
mActionCut->setShortcuts( QKeySequence::Cut );
mActionCut->setStatusTip( tr( "Cut" ) );
mActionCut->setIcon( QgsApplication::getThemeIcon( "/mActionEditCut.png" ) );
connect( mActionCut, SIGNAL( triggered() ), this, SLOT( actionCutTriggered() ) );

mActionCopy = new QAction( tr( "&Copy" ), this );
mActionCopy->setShortcuts( QKeySequence::Copy );
mActionCopy->setStatusTip( tr( "Copy" ) );
mActionCopy->setIcon( QgsApplication::getThemeIcon( "/mActionEditCopy.png" ) );
connect( mActionCopy, SIGNAL( triggered() ), this, SLOT( actionCopyTriggered() ) );

mActionPaste = new QAction( tr( "&Paste" ), this );
mActionPaste->setShortcuts( QKeySequence::Paste );
mActionPaste->setStatusTip( tr( "Paste" ) );
mActionPaste->setIcon( QgsApplication::getThemeIcon( "/mActionEditPaste.png" ) );
connect( mActionPaste, SIGNAL( triggered() ), this, SLOT( actionPasteTriggered() ) );

QMenu *editMenu = menuBar()->addMenu( tr( "Edit" ) );
@@ -328,6 +328,10 @@
</property>
</action>
<action name="mActionShowGrid">
<property name="icon">
<iconset resource="../../python/plugins/fTools/resources.qrc">
<normaloff>:/icons/default/vector_grid.png</normaloff>:/icons/default/vector_grid.png</iconset>
</property>
<property name="text">
<string>Show Grid</string>
</property>
@@ -744,6 +748,10 @@
</property>
</action>
<action name="mActionDeleteSelection">
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionDeleteSelected.svg</normaloff>:/images/themes/default/mActionDeleteSelected.svg</iconset>
</property>
<property name="text">
<string>&amp;Delete</string>
</property>
@@ -755,6 +763,10 @@
</property>
</action>
<action name="mActionDeselectAll">
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionDeselectAll.svg</normaloff>:/images/themes/default/mActionDeselectAll.svg</iconset>
</property>
<property name="text">
<string>De&amp;select All</string>
</property>
@@ -777,6 +789,10 @@
</property>
</action>
<action name="mActionInvertSelection">
<property name="icon">
<iconset resource="../../images/images.qrc">
<normaloff>:/images/themes/default/mActionInvertSelection.png</normaloff>:/images/themes/default/mActionInvertSelection.png</iconset>
</property>
<property name="text">
<string>&amp;Invert Selection</string>
</property>
@@ -934,6 +950,7 @@
</widget>
<resources>
<include location="../../images/images.qrc"/>
<include location="../../python/plugins/fTools/resources.qrc"/>
</resources>
<connections/>
</ui>

0 comments on commit 642ff94

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