| 2085 | } |
| 2086 | |
| 2087 | void RcxEditor::updatePointerTargetFilter() { |
| 2088 | if (!m_editState.active || m_editState.target != EditTarget::PointerTarget) |
| 2089 | return; |
| 2090 | |
| 2091 | QString lineText = getLineText(m_sci, m_editState.line); |
| 2092 | long curPos = m_sci->SendScintilla(QsciScintillaBase::SCI_GETCURRENTPOS); |
| 2093 | int col = (int)m_sci->SendScintilla(QsciScintillaBase::SCI_GETCOLUMN, |
| 2094 | (unsigned long)curPos); |
| 2095 | int len = col - m_editState.spanStart; |
| 2096 | if (len <= 0) { |
| 2097 | showPointerTargetListFiltered(QString()); |
| 2098 | return; |
| 2099 | } |
| 2100 | QString typed = lineText.mid(m_editState.spanStart, len); |
| 2101 | showPointerTargetListFiltered(typed); |
| 2102 | } |
| 2103 | |
| 2104 | // ── Editable-field text-color indicator ── |
| 2105 |
nothing calls this directly
no test coverage detected