MCPcopy Create free account
hub / github.com/TeXworks/texworks / getLineText

Method getLineText

src/TeXDocumentWindow.cpp:1774–1780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1772}
1773
1774QString 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
1782void TeXDocumentWindow::goToLine(int lineNo, int selStart, int selEnd)
1783{

Callers 1

foreachFunction · 0.80

Calls 2

documentMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected