Skip to content
Permalink
Browse files
[processing] add 'optional' label to optional parameters in input dialog
  • Loading branch information
volaya committed Jun 30, 2014
1 parent 2e9e954 commit 1eff31ad96d5fb01e7434e0908ebf5213003d888
Showing with 6 additions and 1 deletion.
  1. +6 −1 python/plugins/processing/gui/ParametersPanel.py
@@ -105,7 +105,12 @@ def initGUI(self):
continue
desc = param.description
if isinstance(param, ParameterExtent):
desc += '(xmin, xmax, ymin, ymax)'
desc += ' (xmin, xmax, ymin, ymax)'
try:
if param.optional:
desc += ' [optional]'
except:
pass
label = QtGui.QLabel(desc)
self.labels[param.name] = label
widget = self.getWidgetFromParameter(param)

0 comments on commit 1eff31a

Please sign in to comment.