def METHOD_NAME(self, thumbnail):
    """Set the thumbnail SVG contents as a string.
    When set it also overrides the icon role.
    """
    self.setData(thumbnail, ThumbnailSVGRole)
    engine = SvgIconEngine(thumbnail.encode("utf-8"))
    self.setIcon(QIcon(engine))