mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
[processing] SVG icon for SAGA provider
This commit is contained in:
parent
28ff28a223
commit
c3fc560fef
@ -596,6 +596,7 @@
|
|||||||
<file>themes/default/providerGrass.svg</file>
|
<file>themes/default/providerGrass.svg</file>
|
||||||
<file>themes/default/providerQgis.svg</file>
|
<file>themes/default/providerQgis.svg</file>
|
||||||
<file>themes/default/providerR.svg</file>
|
<file>themes/default/providerR.svg</file>
|
||||||
|
<file>themes/default/providerSaga.svg</file>
|
||||||
<file>themes/default/processingModel.svg</file>
|
<file>themes/default/processingModel.svg</file>
|
||||||
<file>themes/default/processingScript.svg</file>
|
<file>themes/default/processingScript.svg</file>
|
||||||
<file>themes/default/processingAlgorithm.svg</file>
|
<file>themes/default/processingAlgorithm.svg</file>
|
||||||
|
1
images/themes/default/providerSaga.svg
Normal file
1
images/themes/default/providerSaga.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 5.3 KiB |
@ -30,6 +30,7 @@ from qgis.PyQt.QtGui import QIcon
|
|||||||
from qgis.PyQt.QtCore import QCoreApplication
|
from qgis.PyQt.QtCore import QCoreApplication
|
||||||
from qgis.core import (QgsProcessingProvider,
|
from qgis.core import (QgsProcessingProvider,
|
||||||
QgsProcessingUtils,
|
QgsProcessingUtils,
|
||||||
|
QgsApplication,
|
||||||
QgsMessageLog)
|
QgsMessageLog)
|
||||||
from processing.core.ProcessingConfig import ProcessingConfig, Setting
|
from processing.core.ProcessingConfig import ProcessingConfig, Setting
|
||||||
from processing.tools.system import isWindows, isMac
|
from processing.tools.system import isWindows, isMac
|
||||||
@ -134,7 +135,7 @@ class SagaAlgorithmProvider(QgsProcessingProvider):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def icon(self):
|
def icon(self):
|
||||||
return QIcon(os.path.join(pluginPath, 'images', 'saga.png'))
|
return QgsApplication.getThemeIcon("/providerSaga.svg")
|
||||||
|
|
||||||
def tr(self, string, context=''):
|
def tr(self, string, context=''):
|
||||||
if context == '':
|
if context == '':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user