'Create a QStandardItem for the category description.'

def _cat_desc_to_std_item(self, desc):

    item = QStandardItem()
    item.setText(desc.name)
    if desc.icon:
        icon = desc.icon
    else:
        icon = 'icons/default-category.svg'
    icon = icon_loader.from_description(desc).get(icon)
    item.setIcon(icon)
    if desc.background:
        background = desc.background
    else:
        background = DEFAULT_COLOR
    background = NAMED_COLORS.get(background, background)
    brush = QBrush(QColor(background))
    item.setData(brush, self.BACKGROUND_ROLE)
    tooltip = (desc.description if desc.description else desc.name)
    item.setToolTip(tooltip)
    item.setFlags(Qt.ItemIsEnabled)
    item.setData(desc, self.CATEGORY_DESC_ROLE)
    return item
