'Create a QStandardItem for the widget description.'

def _widget_desc_to_std_item(self, desc, category):

    item = QStandardItem(desc.name)
    item.setText(desc.name)
    if desc.icon:
        icon = desc.icon
    else:
        icon = 'icons/default-widget.svg'
    icon = icon_loader.from_description(desc).get(icon)
    item.setIcon(icon)
    background = None
    if desc.background:
        background = desc.background
    elif category.background:
        background = category.background
    else:
        background = DEFAULT_COLOR
    if (background is not None):
        background = NAMED_COLORS.get(background, background)
        brush = QBrush(QColor(background))
        item.setData(brush, self.BACKGROUND_ROLE)
    tooltip = tooltip_helper(desc)
    style = 'ul    {    margin-top:    1px;    margin-bottom:    1px;    }'
    tooltip = TOOLTIP_TEMPLATE.format(style=style, tooltip=tooltip)
    item.setToolTip(tooltip)
    item.setWhatsThis(whats_this_helper(desc))
    item.setFlags((Qt.ItemIsEnabled | Qt.ItemIsSelectable))
    item.setData(desc, self.WIDGET_DESC_ROLE)
    action = self.create_action_for_item(item)
    item.setData(action, self.WIDGET_ACTION_ROLE)
    return item
