Skip to content

Commit

Permalink
[composer] Add some missing icons to menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 27, 2014
1 parent c2f74c2 commit 642ff94
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/composer/qgscomposer.cpp 100644 → 100755
Expand Up @@ -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" ) );
Expand Down
17 changes: 17 additions & 0 deletions src/ui/qgscomposerbase.ui
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand Down Expand Up @@ -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.