'Set the action role. This is the model role containing a
`QAction` instance.'

def setActionRole(self, role):

    if (self.__actionRole != role):
        self.__actionRole = role
        if self.__model:
            self.__update()
