'Show the actions in a flattened view.'

def setFlattened(self, flatten):

    if (self.__flattened != flatten):
        self.__flattened = flatten
        if flatten:
            model = FlattenedTreeItemModel()
            model.setSourceModel(self.__model)
        else:
            model = self.__model
        self.__view.setModel(model)
