'Initialize the toolbar from the model.'

def __initFromModel(self, model):

    root = model.invisibleRootItem()
    for item in iter_item(root):
        action = self.createActionForItem(item)
        self.addAction(action)
