def _get_block_plain_text(self, block):
cursor = QtGui.QTextCursor(block)<EOL>cursor.movePosition(QtGui.QTextCursor.StartOfBlock)<EOL>cursor.movePosition(QtGui.QTextCursor.EndOfBlock,<EOL>QtGui.QTextCursor.KeepAnchor)<EOL>return cursor.selection().toPlainText()<EOL>
Given a QTextBlock, return its unformatted text.