Skip to content

Commit

Permalink
[processing] add icons to SAGA algorithms (fix #18211)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4777abb)
  • Loading branch information
alexbruy committed Feb 26, 2018
1 parent 19aebf8 commit ef4a518
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/plugins/processing/algs/saga/SagaAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import importlib
from copy import deepcopy
from qgis.core import (Qgis,
QgsApplication,
QgsProcessingUtils,
QgsProcessingException,
QgsMessageLog,
Expand Down Expand Up @@ -101,6 +102,12 @@ def groupId(self):
def shortHelpString(self):
return shortHelp.get(self.id(), None)

def icon(self):
return QgsApplication.getThemeIcon("/providerSaga.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerSaga.svg")

def flags(self):
# TODO - maybe it's safe to background thread this?
return super().flags() | QgsProcessingAlgorithm.FlagNoThreading
Expand Down

0 comments on commit ef4a518

Please sign in to comment.