mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Merge pull request #6238 from alexbruy/saga-icon
[processing] SVG icon for SAGA provider
This commit is contained in:
commit
3ab6e5c399
@ -596,6 +596,7 @@
|
||||
<file>themes/default/providerGrass.svg</file>
|
||||
<file>themes/default/providerQgis.svg</file>
|
||||
<file>themes/default/providerR.svg</file>
|
||||
<file>themes/default/providerSaga.svg</file>
|
||||
<file>themes/default/processingModel.svg</file>
|
||||
<file>themes/default/processingScript.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.core import (QgsProcessingProvider,
|
||||
QgsProcessingUtils,
|
||||
QgsApplication,
|
||||
QgsMessageLog)
|
||||
from processing.core.ProcessingConfig import ProcessingConfig, Setting
|
||||
from processing.tools.system import isWindows, isMac
|
||||
@ -134,7 +135,7 @@ class SagaAlgorithmProvider(QgsProcessingProvider):
|
||||
return False
|
||||
|
||||
def icon(self):
|
||||
return QIcon(os.path.join(pluginPath, 'images', 'saga.png'))
|
||||
return QgsApplication.getThemeIcon("/providerSaga.svg")
|
||||
|
||||
def tr(self, string, context=''):
|
||||
if context == '':
|
||||
|
Loading…
x
Reference in New Issue
Block a user