def indentBlock(block):
            cursor = cursorAtSpaceEnd(block)
            cursor.insertText(' ' if withSpace else self.text())
def _get_drag_data(self, dragged_item):
    return str(self._items.index(dragged_item))