'Text annotation editing has finished.'

def __onEditingFinished(self, item):

    annot = self.__scene.annotation_for_item(item)
    content_type = item.contentType()
    content = item.content()
    if ((annot.text != content) or (annot.content_type != content_type)):
        self.__undoStack.push(commands.TextChangeCommand(self.scheme(), annot, annot.text, annot.content_type, content, content_type))
