Draft: 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:
@@ -2047,12 +2047,12 @@ class FacebinderTaskPanel:
|
||||
for subf in f[1]:
|
||||
item = QtGui.QTreeWidgetItem(self.tree)
|
||||
item.setText(0,f[0].Name)
|
||||
item.setIcon(0,QtGui.QIcon(":/icons/Tree_Part.svg"))
|
||||
item.setIcon(0, QtGui.QIcon(":/icons/Part_3D_object.svg"))
|
||||
item.setText(1,subf)
|
||||
else:
|
||||
item = QtGui.QTreeWidgetItem(self.tree)
|
||||
item.setText(0,f[0].Name)
|
||||
item.setIcon(0,QtGui.QIcon(":/icons/Tree_Part.svg"))
|
||||
item.setIcon(0, QtGui.QIcon(":/icons/Part_3D_object.svg"))
|
||||
item.setText(1,f[1])
|
||||
self.retranslateUi(self.form)
|
||||
|
||||
|
||||
@@ -515,14 +515,14 @@ _ViewProviderDraftAlt = ViewProviderDraftAlt
|
||||
class ViewProviderDraftPart(ViewProviderDraftAlt):
|
||||
"""A view provider that displays a Part icon instead of a Draft icon.
|
||||
|
||||
The `getIcon` method is overridden to provide `Tree_Part.svg`.
|
||||
The `getIcon` method is overridden to provide `Part_3D_object.svg`.
|
||||
"""
|
||||
|
||||
def __init__(self, vobj):
|
||||
super(ViewProviderDraftPart, self).__init__(vobj)
|
||||
|
||||
def getIcon(self):
|
||||
return ":/icons/Tree_Part.svg"
|
||||
return ":/icons/Part_3D_object.svg"
|
||||
|
||||
|
||||
# Alias for compatibility with v0.18 and earlier
|
||||
|
||||
Reference in New Issue
Block a user