Skip to content
Permalink
Browse files

Use translated text in modeller

  • Loading branch information
m-kuhn committed Mar 1, 2018
1 parent 592c9b2 commit 9aac4e38df0c208ba388ed6931657dff0bf33cca
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/processing/modeler/ModelerDialog.py
@@ -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

@@ -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'])

0 comments on commit 9aac4e3

Please sign in to comment.
You can’t perform that action at this time.