Skip to content

Commit 3dffb7b

Browse files
committedMar 31, 2016
reuse core icons
1 parent 6c6e983 commit 3dffb7b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 
-2.18 KB
Binary file not shown.

‎python/plugins/MetaSearch/plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from PyQt.QtWidgets import QAction
3030
from PyQt.QtGui import QIcon
3131

32+
from qgis.core import QgsApplication
3233
from MetaSearch.dialogs.maindialog import MetaSearchDialog
3334
from MetaSearch.util import get_help_url, open_url, StaticContext
3435

@@ -68,7 +69,7 @@ def initGui(self):
6869
self.iface.addPluginToWebMenu(self.web_menu, self.action_run)
6970

7071
# help
71-
help_icon = QIcon('%s/%s' % (self.context.ppath, 'images/help.png'))
72+
help_icon = QgsApplication.getThemeIcon('/mActionHelpContents.svg')
7273
self.action_help = QAction(help_icon, 'Help', self.iface.mainWindow())
7374
self.action_help.setWhatsThis(QCoreApplication.translate('MetaSearch',
7475
'MetaSearch plugin help'))

0 commit comments

Comments
 (0)
Please sign in to comment.