mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-28 00:22:34 -05:00
[processing] make color parameter available to description-based algs
This commit is contained in:
parent
f6b5d5f8b3
commit
84c530b97b
@ -56,7 +56,8 @@ from qgis.core import (QgsRasterLayer,
|
||||
QgsProcessingParameterMapLayer,
|
||||
QgsProcessingParameterMultipleLayers,
|
||||
QgsProcessingParameterFeatureSource,
|
||||
QgsProcessingParameterNumber)
|
||||
QgsProcessingParameterNumber,
|
||||
QgsProcessingParameterColor)
|
||||
|
||||
from qgis.PyQt.QtCore import QCoreApplication
|
||||
|
||||
@ -214,6 +215,11 @@ def getParameterFromString(s, context=''):
|
||||
params[3] = True if params[3].lower() == 'true' else False
|
||||
if len(params) > 4:
|
||||
params[4] = True if params[4].lower() == 'true' else False
|
||||
elif clazz == QgsProcessingParameterColor:
|
||||
if len(params) > 3:
|
||||
params[3] = True if params[3].lower() == 'true' else False
|
||||
if len(params) > 4:
|
||||
params[4] = True if params[4].lower() == 'true' else False
|
||||
elif clazz == QgsProcessingParameterFileDestination:
|
||||
if len(params) > 4:
|
||||
params[4] = True if params[4].lower() == 'true' else False
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user