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

Method updatePointerTargetFilter

src/editor.cpp:2087–2102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2085}
2086
2087void 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

Callers

nothing calls this directly

Calls 1

getLineTextFunction · 0.85

Tested by

no test coverage detected