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

Method selectedDocHasChanges

plugins/documentview/kdevdocumentview.cpp:234–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234bool KDevDocumentView::selectedDocHasChanges()
235{
236 KDevelop::IDocumentController* dc = m_plugin->core()->documentController();
237 for (const QUrl& url : std::as_const(m_selectedDocs)) {
238 KDevelop::IDocument* doc = dc->documentForUrl(url);
239 if (!doc) continue;
240 if (doc->state() != KDevelop::IDocument::Clean)
241 {
242 return true;
243 }
244 }
245 return false;
246}
247
248void KDevDocumentView::updateSelectedDocs()
249{

Callers

nothing calls this directly

Calls 4

documentControllerMethod · 0.80
documentForUrlMethod · 0.80
coreMethod · 0.45
stateMethod · 0.45

Tested by

no test coverage detected