'Set pixmap transformation mode. (`Qt.SmoothTransformation` or
`Qt.FastTransformation`).'

def setTransformationMode(self, mode):

    if (self.__transformationMode != mode):
        self.__transformationMode = mode
        self.update()
