'Remove items from range start:end from the grid.'

def __on_rowsRemoved(self, parent, start, end):

    item = self.__model.itemForIndex(parent)
    if (item == self.__rootItem):
        for i in reversed(range((start - 1), end)):
            action = self.actions()[i]
            self.removeAction(action)
