| 1772 | } |
| 1773 | |
| 1774 | QString TeXDocumentWindow::getLineText(int lineNo) const |
| 1775 | { |
| 1776 | QTextDocument* doc = textEdit->document(); |
| 1777 | if (lineNo < 1 || lineNo > doc->blockCount()) |
| 1778 | return QString(); |
| 1779 | return doc->findBlockByNumber(lineNo - 1).text(); |
| 1780 | } |
| 1781 | |
| 1782 | void TeXDocumentWindow::goToLine(int lineNo, int selStart, int selEnd) |
| 1783 | { |