BIM: Fixed bug in BimViews - fixes #16452
This commit is contained in:
committed by
Yorik van Havre
parent
1e84a82ed9
commit
e3fa0266fb
@@ -268,9 +268,8 @@ class BIM_Views:
|
||||
top.setIcon(0, ficon)
|
||||
for v in views:
|
||||
i = QtGui.QTreeWidgetItem([v.Label, ""])
|
||||
if hasattr(v.ViewObject, "Proxy"):
|
||||
if hasattr(v.ViewObject.Proxy, "getIcon"):
|
||||
i.setIcon(0, QtGui.QIcon(v.ViewObject.Proxy.getIcon()))
|
||||
if hasattr(v.ViewObject, "Icon"):
|
||||
i.setIcon(0, v.ViewObject.Icon)
|
||||
i.setToolTip(0, v.Name)
|
||||
top.addChild(i)
|
||||
vm.tree.addTopLevelItem(top)
|
||||
@@ -282,9 +281,8 @@ class BIM_Views:
|
||||
top.setIcon(0, ficon)
|
||||
for p in pages:
|
||||
i = QtGui.QTreeWidgetItem([p.Label, ""])
|
||||
if hasattr(v.ViewObject, "Proxy"):
|
||||
if hasattr(v.ViewObject.Proxy, "getIcon"):
|
||||
i.setIcon(0, QtGui.QIcon(v.ViewObject.Proxy.getIcon()))
|
||||
if hasattr(p.ViewObject, "Icon"):
|
||||
i.setIcon(0, p.ViewObject.Icon)
|
||||
i.setToolTip(0, p.Name)
|
||||
top.addChild(i)
|
||||
vm.tree.addTopLevelItem(top)
|
||||
|
||||
Reference in New Issue
Block a user