FEM: constraint body heat source vp, fix tree view icon

This commit is contained in:
Bernd Hahnebach
2020-03-10 22:27:34 +01:00
parent 29871f3b63
commit 8f56117c4e
2 changed files with 4 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ class ViewProxy(object):
vobj.Proxy = self
# needs to be overwritten, if no standard icon name is used
# see constraint body heat source as an example
def getIcon(self):
"""after load from FCStd file, self.icon does not exist, return constant path instead"""
# https://forum.freecadweb.org/viewtopic.php?f=18&t=44009

View File

@@ -1,5 +1,6 @@
# ***************************************************************************
# * Copyright (c) 2017 Markus Hovorka <m.hovorka@live.de> *
# * Copyright (c) 2020 Bernd Hahnebach <bernd@bimstatik.org> *
# * *
# * This file is part of the FreeCAD CAx development system. *
# * *
@@ -33,6 +34,7 @@ from . import ViewProviderFemConstraint
class ViewProxy(ViewProviderFemConstraint.ViewProxy):
pass
def getIcon(self):
return ":/icons/FEM_ConstraintHeatflux.svg" # the heatflux icon is used
## @}