def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def _get_drag_data(self, dragged_item):
    return str(self._items.index(dragged_item))