def createEditor(self, parent, option, index): editor = index.data(self.EditorRole) if editor is None: obj = index.data(self.ObjectRole) prp = index.data(self.PropertyRole) editor = PathPropertyEditor.Editor(obj, prp) index.model().setData(index, editor, self.EditorRole) return editor.widget(parent)
def createEditor(self, parent, option, index): # pylint: disable=unused-argument editor = PathPropertyEditor.Editor(index.data(self.RoleObject), index.data(self.RoleProperty)) index.model().setData(index, editor, self.RoleEditor) return editor.widget(parent)
def createEditor(self, parent, option, index): editor = PathPropertyEditor.Editor(index.data(self.RoleObject), index.data(self.RoleProperty)) index.model().setData(index, editor, self.RoleEditor) return editor.widget(parent)