Skip to content

Commit 4777abb

Browse files
committed
[processing] add icons to SAGA algorithms (fix #18211)
1 parent b920799 commit 4777abb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

python/plugins/processing/algs/saga/SagaAlgorithm.py

+7
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import importlib
3131
from copy import deepcopy
3232
from qgis.core import (Qgis,
33+
QgsApplication,
3334
QgsProcessingUtils,
3435
QgsProcessingException,
3536
QgsMessageLog,
@@ -101,6 +102,12 @@ def groupId(self):
101102
def shortHelpString(self):
102103
return shortHelp.get(self.id(), None)
103104

105+
def icon(self):
106+
return QgsApplication.getThemeIcon("/providerSaga.svg")
107+
108+
def svgIconPath(self):
109+
return QgsApplication.iconPath("providerSaga.svg")
110+
104111
def flags(self):
105112
# TODO - maybe it's safe to background thread this?
106113
return super().flags() | QgsProcessingAlgorithm.FlagNoThreading

0 commit comments

Comments
 (0)