def paint(self, painter, option, index):
        painter.save()

        column = index.column()
        if column == 1:
            icon = index.model().data(index, Qt.DecorationRole)
            pixmap = icon.pixmap(option.rect.size() * 0.9)
            x = option.rect.left() + option.rect.width() / 2 - pixmap.width() / 2
            rect = QRect(x, option.rect.top(), pixmap.width(), pixmap.height())
            painter.drawPixmap(rect, pixmap)
        else:
            QItemDelegate.paint(self, painter, option, index)

        painter.restore()