Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[processing] added some extra info in modeler calculator
- Loading branch information
Showing
with
6 additions
and
3 deletions.
-
+6
−3
python/plugins/processing/modeler/CalculatorModelerAlgorithm.py
|
@@ -85,9 +85,12 @@ def setupUi(self): |
|
|
text = ('You can refer to model values in you formula, using' |
|
|
'single-letter variables, as follows:\n') |
|
|
ichar = 97 |
|
|
for number in numbers: |
|
|
text += chr(ichar) + '->' + self.resolveValueDescription(number) + '\n' |
|
|
ichar += 1 |
|
|
if numbers: |
|
|
for number in numbers: |
|
|
text += chr(ichar) + '->' + self.resolveValueDescription(number) + '\n' |
|
|
ichar += 1 |
|
|
else: |
|
|
text += "\n - No numerical variables are available." |
|
|
self.infoText.setText(text) |
|
|
self.infoText.setEnabled(False) |
|
|
self.formulaText = QtGui.QLineEdit() |
|
|