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

Method closeDocument

kdevplatform/shell/ktexteditorpluginintegration.cpp:375–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375bool Application::closeDocument(KTextEditor::Document *document) const
376{
377 if (auto* const iDocument = iDocumentFromKteDocument(document)) {
378 return iDocument->close();
379 }
380
381 qCWarning(SHELL) << "ignoring request to close a document not registered with the document controller" << document;
382 // If the warning is printed in some scenario, consider returning
383 // `document && document->closeUrl()` instead of `false`.
384 return false;
385}
386
387KTextEditor::Plugin *Application::plugin(const QString &id) const
388{

Callers

nothing calls this directly

Calls 2

iDocumentFromKteDocumentFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected