Arch: use new name of the icon Part_3D_object

It is defined in the Part Workbench. Before, it was called `Tree_Part`.
This commit is contained in:
vocx-fc
2020-10-07 18:31:13 -05:00
committed by wwmayer
parent 15408b2132
commit 587475fc8a
6 changed files with 20 additions and 12 deletions

View File

@@ -1805,11 +1805,13 @@ class ComponentTaskPanel:
if hasattr(obj.ViewObject,"Proxy"):
if hasattr(obj.ViewObject.Proxy,"getIcon"):
return QtGui.QIcon(obj.ViewObject.Proxy.getIcon())
if obj.isDerivedFrom("Sketcher::SketchObject"):
elif obj.isDerivedFrom("Sketcher::SketchObject"):
return QtGui.QIcon(":/icons/Sketcher_Sketch.svg")
if obj.isDerivedFrom("App::DocumentObjectGroup"):
elif obj.isDerivedFrom("App::DocumentObjectGroup"):
return QtGui.QApplication.style().standardIcon(QtGui.QStyle.SP_DirIcon)
return QtGui.QIcon(":/icons/Tree_Part.svg")
elif hasattr(obj.ViewObject, "Icon"):
return QtGui.QIcon(obj.ViewObject.Icon)
return QtGui.QIcon(":/icons/Part_3D_object.svg")
def update(self):
"""Populate the treewidget with its various items.