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

Method settingsChanged

kdevplatform/shell/sourceformattercontroller.cpp:740–752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738}
739
740void SourceFormatterController::settingsChanged()
741{
742 Q_D(const SourceFormatterController);
743
744 const auto documents = ICore::self()->documentController()->openDocuments();
745 for (KDevelop::IDocument* doc : documents) {
746 FileFormatter ff(*doc);
747 if (ff.readFormatterAndStyle(d->sourceFormatters)) {
748 ff.adaptEditorIndentationMode(doc->textDocument());
749 }
750 }
751 updateFormatTextAction();
752}
753
754/**
755* Kate commands:

Callers 1

applyMethod · 0.45

Calls 5

openDocumentsMethod · 0.80
documentControllerMethod · 0.80
readFormatterAndStyleMethod · 0.80
textDocumentMethod · 0.45

Tested by

no test coverage detected