def setModelData(self, editor, model, index):
     idx = editor.currentIndex()
     value = editor.itemData(idx).toPyObject()
     model.setData(index, QtCore.QVariant(value), QtCore.Qt.EditRole)
Exemplo 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)
Exemplo n.º 3
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()
     model.setData(index, QtCore.QVariant(value), QtCore.Qt.EditRole)