'Fix the dock close icon.'

def __fixIcon(self):

    direction = self.layoutDirection()
    if (direction == Qt.LeftToRight):
        if self.__expanded:
            icon = self.__iconLeft
        else:
            icon = self.__iconRight
    elif self.__expanded:
        icon = self.__iconRight
    else:
        icon = self.__iconLeft
    self.__closeButton.setIcon(icon)
