'Set widget description.'

def setWidgetDescription(self, desc):

    self.widget_description = desc
    if (desc is None):
        return
    icon = icon_loader.from_description(desc).get(desc.icon)
    if icon:
        self.setIcon(icon)
    if (not self.title()):
        self.setTitle(desc.name)
    if desc.inputs:
        self.inputAnchorItem.show()
    if desc.outputs:
        self.outputAnchorItem.show()
    tooltip = NodeItem_toolTipHelper(self)
    self.setToolTip(tooltip)
