MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / getLineText

Function getLineText

src/editor.cpp:760–769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

758// ── Inline edit helpers ──
759
760static QString getLineText(QsciScintilla* sci, int line) {
761 int len = (int)sci->SendScintilla(QsciScintillaBase::SCI_LINELENGTH, (unsigned long)line);
762 if (len <= 0) return {};
763 QByteArray buf(len + 1, '\0');
764 sci->SendScintilla(QsciScintillaBase::SCI_GETLINE, (unsigned long)line, (void*)buf.data());
765 QString text = QString::fromUtf8(buf.data(), len);
766 while (text.endsWith('\n') || text.endsWith('\r'))
767 text.chop(1);
768 return text;
769}
770
771void RcxEditor::applyDataChangedHighlight(const QVector<LineMeta>& meta) {
772 for (int i = 0; i < meta.size(); i++) {

Callers 14

applyCommandRowPillsMethod · 0.85
resolvedSpanForMethod · 0.85
hitTestTargetFunction · 0.85
eventFilterMethod · 0.85
handleEditKeyMethod · 0.85
editEndColMethod · 0.85
commitInlineEditMethod · 0.85
updateTypeListFilterMethod · 0.85
setEditCommentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected