コード例 #1
0
 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)
コード例 #2
0
 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)
コード例 #3
0
ファイル: PathPropertyBagGui.py プロジェクト: waebbl/FreeCAD
 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)