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

Method documentUrlChanged

kdevplatform/shell/watcheddocumentset.cpp:288–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void OpenDocumentSet::documentUrlChanged(IDocument* doc, const QUrl& previousUrl)
289{
290 Q_D(WatchedDocumentSet);
291
292 if (doc->textDocument()) {
293 d->renameDocument(IndexedString{previousUrl}, IndexedString{doc->url()}, DoUpdate | DoEmit);
294 }
295}
296
297ProblemScope OpenDocumentSet::scope() const
298{

Callers

nothing calls this directly

Calls 3

renameDocumentMethod · 0.80
textDocumentMethod · 0.45
urlMethod · 0.45

Tested by

no test coverage detected