Skip to content

Commit

Permalink
Use translated text in modeller
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Mar 1, 2018
1 parent 592c9b2 commit 9aac4e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/modeler/ModelerDialog.py
Expand Up @@ -227,7 +227,7 @@ def _mouseMoveEvent(e):

def _mimeDataInput(items):
mimeData = QMimeData()
text = items[0].text(0)
text = items[0].data(0, Qt.UserRole)
mimeData.setText(text)
return mimeData

Expand Down Expand Up @@ -629,8 +629,8 @@ def fillInputsTree(self):
sortedParams = sorted(Processing.registeredParameters().items())
for param in sortedParams:
paramItem = QTreeWidgetItem()
paramItem.setText(0, param[0])
paramItem.setData(0, Qt.UserRole, param[1]['parameter'])
paramItem.setText(0, param[1]['name'])
paramItem.setData(0, Qt.UserRole, param[0])
paramItem.setIcon(0, icon)
paramItem.setFlags(Qt.ItemIsEnabled | Qt.ItemIsSelectable | Qt.ItemIsDragEnabled)
paramItem.setToolTip(0, param[1]['description'])
Expand Down

0 comments on commit 9aac4e3

Please sign in to comment.