Skip to content

Commit 841f8fb

Browse files
committed
[processing] re-enabled tooltips in algorithm dialog
1 parent c080c20 commit 841f8fb

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

python/plugins/processing/gui/ParametersPanel.py

+2-7
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ def updateMultipleInputs(self):
171171
widget.updateForOptions(opts)
172172

173173
def initWidgets(self):
174-
#tooltips = self.alg.getParameterDescriptions()
175-
176174
# If there are advanced parameters — show corresponding groupbox
177175
for param in self.alg.parameters:
178176
if param.isAdvanced:
@@ -215,11 +213,8 @@ def initWidgets(self):
215213
widget = QWidget()
216214
widget.setLayout(layout)
217215

218-
#~ if param.name in tooltips.keys():
219-
#~ tooltip = tooltips[param.name]
220-
#~ else:
221-
#~ tooltip = param.description
222-
#~ widget.setToolTip(tooltip)
216+
tooltips = self.alg.getParameterDescriptions()
217+
widget.setToolTip(tooltips.get(param.name, param.description))
223218

224219
if isinstance(param, ParameterBoolean):
225220
widget.setText(desc)

0 commit comments

Comments
 (0)