| 758 | // ── Inline edit helpers ── |
| 759 | |
| 760 | static 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 | |
| 771 | void RcxEditor::applyDataChangedHighlight(const QVector<LineMeta>& meta) { |
| 772 | for (int i = 0; i < meta.size(); i++) { |
no outgoing calls
no test coverage detected