Skip to content
Permalink
Browse files

[processing] add icons to SAGA algorithms (fix #18211)

  • Loading branch information
alexbruy committed Feb 26, 2018
1 parent b920799 commit 4777abb48e5e2aa647b9750f7e015d32574ca97e
Showing with 7 additions and 0 deletions.
  1. +7 −0 python/plugins/processing/algs/saga/SagaAlgorithm.py
@@ -30,6 +30,7 @@
import importlib
from copy import deepcopy
from qgis.core import (Qgis,
QgsApplication,
QgsProcessingUtils,
QgsProcessingException,
QgsMessageLog,
@@ -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

0 comments on commit 4777abb

Please sign in to comment.
You can’t perform that action at this time.