Skip to content
Permalink
Browse files

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

(cherry picked from commit 4777abb)
  • Loading branch information
alexbruy committed Feb 26, 2018
1 parent 19aebf8 commit ef4a518d8f65d8b4e48db83e146d0844a17546ae
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 ef4a518

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