mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
show variableDescription as shown in the list of variables
This commit is contained in:
parent
0acb766412
commit
5ebe5d6c5b
@ -214,10 +214,11 @@ class ExpressionWidgetWrapper(WidgetWrapper):
|
||||
return QLineEdit()
|
||||
else:
|
||||
layers = self.dialog.getAvailableValuesOfType([QgsProcessingParameterRasterLayer], [QgsProcessingOutputRasterLayer])
|
||||
options = {self.dialog.resolveValueDescription(lyr): "{}@1".format(lyr) for lyr in layers}
|
||||
options = {self.dialog.resolveValueDescription(lyr): "{}@1".format(self.dialog.resolveValueDescription(lyr)) for lyr in layers}
|
||||
return self._panel(options)
|
||||
|
||||
def refresh(self):
|
||||
# TODO: check if avoid code duplication with self.createWidget
|
||||
layers = QgsProcessingUtils.compatibleRasterLayers(QgsProject.instance())
|
||||
options = {}
|
||||
for lyr in layers:
|
||||
|
Loading…
x
Reference in New Issue
Block a user