MCPcopy Create free account
hub / github.com/KDE/kdevelop / textRemoved

Method textRemoved

kdevplatform/language/assistant/staticassistantsmanager.cpp:128–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void StaticAssistantsManagerPrivate::textRemoved(Document* doc, const Range& range,
129 const QString& removedText)
130{
131 auto changed = false;
132 for (auto& assistant : std::as_const(m_registeredAssistants)) {
133 auto wasUseful = assistant->isUseful();
134 assistant->textChanged(doc, range, removedText);
135 if (wasUseful != assistant->isUseful()) {
136 changed = true;
137 }
138 }
139
140 if (changed) {
141 Q_EMIT q->problemsChanged(IndexedString(doc->url()));
142 }
143}
144
145void StaticAssistantsManager::notifyAssistants(const IndexedString& url,
146 const KDevelop::ReferencedTopDUContext& context)

Callers

nothing calls this directly

Calls 4

IndexedStringClass · 0.50
isUsefulMethod · 0.45
textChangedMethod · 0.45
urlMethod · 0.45

Tested by

no test coverage detected