'Process todo finder results'

def process_todo(self, todo_results):

    for data in self.blockuserdata_list[:]:
        data.todo = ''
        if data.is_empty():
            del data
    for (message, line_number) in todo_results:
        block = self.document().findBlockByNumber((line_number - 1))
        data = block.userData()
        if (not data):
            data = BlockUserData(self)
        data.todo = message
        block.setUserData(data)
    self.scrollflagarea.update()
