Skip to content

Commit

Permalink
Merge pull request #6238 from alexbruy/saga-icon
Browse files Browse the repository at this point in the history
[processing] SVG icon for SAGA provider
  • Loading branch information
alexbruy committed Feb 1, 2018
2 parents f845e02 + c3fc560 commit 3ab6e5c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions images/images.qrc
Expand Up @@ -596,6 +596,7 @@
<file>themes/default/providerGrass.svg</file>
<file>themes/default/providerQgis.svg</file>
<file>themes/default/providerR.svg</file>
<file>themes/default/providerSaga.svg</file>
<file>themes/default/processingModel.svg</file>
<file>themes/default/processingScript.svg</file>
<file>themes/default/processingAlgorithm.svg</file>
Expand Down
1 change: 1 addition & 0 deletions images/themes/default/providerSaga.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/saga/SagaAlgorithmProvider.py
Expand Up @@ -30,6 +30,7 @@
from qgis.PyQt.QtCore import QCoreApplication
from qgis.core import (QgsProcessingProvider,
QgsProcessingUtils,
QgsApplication,
QgsMessageLog)
from processing.core.ProcessingConfig import ProcessingConfig, Setting
from processing.tools.system import isWindows, isMac
Expand Down Expand Up @@ -134,7 +135,7 @@ def supportsNonFileBasedOutput(self):
return False

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'saga.png'))
return QgsApplication.getThemeIcon("/providerSaga.svg")

def tr(self, string, context=''):
if context == '':
Expand Down

0 comments on commit 3ab6e5c

Please sign in to comment.