def setModelData(self, editor, model, index):
     idx = editor.currentIndex()
     value = editor.itemData(idx).toPyObject()
     model.setData(index, QtCore.QVariant(value), QtCore.Qt.EditRole)
Esempio n. 2
0
	def setModelData(self, editor, model, index):
		idx = editor.currentIndex()
		value = editor.itemData(idx).toPyObject()
		self.item.path[index.row()].ucstep = value 
		model.setData(index, QtCore.QVariant(value), QtCore.Qt.EditRole)
 def setModelData(self, editor, model, index):
     idx = editor.currentIndex()
     value = editor.itemData(idx).toPyObject()
     self.item.path[index.row()].ucstep = value
     model.setData(index, QtCore.QVariant(value), QtCore.Qt.EditRole)
 def setModelData(self, editor, model, index):
     idx = editor.currentIndex()
     value = editor.itemData(idx).toPyObject()
     model.setData(index, QtCore.QVariant(value), QtCore.Qt.EditRole)