Skip to content

Commit

Permalink
[processing] re-enabled tooltips in algorithm dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed May 27, 2016
1 parent c080c20 commit 841f8fb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions python/plugins/processing/gui/ParametersPanel.py
Expand Up @@ -171,8 +171,6 @@ def updateMultipleInputs(self):
widget.updateForOptions(opts)

def initWidgets(self):
#tooltips = self.alg.getParameterDescriptions()

# If there are advanced parameters — show corresponding groupbox
for param in self.alg.parameters:
if param.isAdvanced:
Expand Down Expand Up @@ -215,11 +213,8 @@ def initWidgets(self):
widget = QWidget()
widget.setLayout(layout)

#~ if param.name in tooltips.keys():
#~ tooltip = tooltips[param.name]
#~ else:
#~ tooltip = param.description
#~ widget.setToolTip(tooltip)
tooltips = self.alg.getParameterDescriptions()
widget.setToolTip(tooltips.get(param.name, param.description))

if isinstance(param, ParameterBoolean):
widget.setText(desc)
Expand Down

0 comments on commit 841f8fb

Please sign in to comment.