'Reimplmemented from :ref:`MenuPage.setModel`.'

def setModel(self, model):

    flat = FlattenedTreeItemModel(self)
    flat.setSourceModel(model)
    flat.setFlatteningMode(flat.InternalNodesDisabled)
    flat.setFlatteningMode(flat.LeavesOnly)
    proxy = SortFilterProxyModel(self)
    proxy.setFilterCaseSensitivity(False)
    proxy.setSourceModel(flat)
    ToolTree.setModel(self, proxy)
    self.ensureCurrent()
