| 67 | } |
| 68 | |
| 69 | QString DocumentContextReader::getContextBefore( |
| 70 | int lineNumber, int cursorPosition, int linesCount) const |
| 71 | { |
| 72 | int startLine = lineNumber - linesCount + 1; |
| 73 | if (m_copyrightInfo.found) { |
| 74 | startLine = qMax(m_copyrightInfo.endLine + 1, startLine); |
| 75 | } |
| 76 | |
| 77 | return getContextBetween(startLine, -1, lineNumber, cursorPosition); |
| 78 | } |
| 79 | |
| 80 | QString DocumentContextReader::getContextAfter( |
| 81 | int lineNumber, int cursorPosition, int linesCount) const |
no outgoing calls