Skip to content

Commit 642ff94

Browse files
committedJul 27, 2014
[composer] Add some missing icons to menu items
1 parent c2f74c2 commit 642ff94

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
 

‎src/app/composer/qgscomposer.cpp

100644100755
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,16 +226,19 @@ QgsComposer::QgsComposer( QgisApp *qgis, const QString& title )
226226
mActionCut = new QAction( tr( "Cu&t" ), this );
227227
mActionCut->setShortcuts( QKeySequence::Cut );
228228
mActionCut->setStatusTip( tr( "Cut" ) );
229+
mActionCut->setIcon( QgsApplication::getThemeIcon( "/mActionEditCut.png" ) );
229230
connect( mActionCut, SIGNAL( triggered() ), this, SLOT( actionCutTriggered() ) );
230231

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

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

241244
QMenu *editMenu = menuBar()->addMenu( tr( "Edit" ) );

‎src/ui/qgscomposerbase.ui

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,10 @@
328328
</property>
329329
</action>
330330
<action name="mActionShowGrid">
331+
<property name="icon">
332+
<iconset resource="../../python/plugins/fTools/resources.qrc">
333+
<normaloff>:/icons/default/vector_grid.png</normaloff>:/icons/default/vector_grid.png</iconset>
334+
</property>
331335
<property name="text">
332336
<string>Show Grid</string>
333337
</property>
@@ -744,6 +748,10 @@
744748
</property>
745749
</action>
746750
<action name="mActionDeleteSelection">
751+
<property name="icon">
752+
<iconset resource="../../images/images.qrc">
753+
<normaloff>:/images/themes/default/mActionDeleteSelected.svg</normaloff>:/images/themes/default/mActionDeleteSelected.svg</iconset>
754+
</property>
747755
<property name="text">
748756
<string>&amp;Delete</string>
749757
</property>
@@ -755,6 +763,10 @@
755763
</property>
756764
</action>
757765
<action name="mActionDeselectAll">
766+
<property name="icon">
767+
<iconset resource="../../images/images.qrc">
768+
<normaloff>:/images/themes/default/mActionDeselectAll.svg</normaloff>:/images/themes/default/mActionDeselectAll.svg</iconset>
769+
</property>
758770
<property name="text">
759771
<string>De&amp;select All</string>
760772
</property>
@@ -777,6 +789,10 @@
777789
</property>
778790
</action>
779791
<action name="mActionInvertSelection">
792+
<property name="icon">
793+
<iconset resource="../../images/images.qrc">
794+
<normaloff>:/images/themes/default/mActionInvertSelection.png</normaloff>:/images/themes/default/mActionInvertSelection.png</iconset>
795+
</property>
780796
<property name="text">
781797
<string>&amp;Invert Selection</string>
782798
</property>
@@ -934,6 +950,7 @@
934950
</widget>
935951
<resources>
936952
<include location="../../images/images.qrc"/>
953+
<include location="../../python/plugins/fTools/resources.qrc"/>
937954
</resources>
938955
<connections/>
939956
</ui>

0 commit comments

Comments
 (0)
Please sign in to comment.