'Set the icon to display.'

def setIcon(self, icon):

    if (icon != self.__icon):
        self.__icon = QIcon(icon)
        self.__iconItem.setPixmap(icon.pixmap(self.iconSize()))
        self.__iconLayoutItem.updateGeometry()
