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

Function configForUrl

kdevplatform/shell/sourceformattercontroller.cpp:94–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94KConfigGroup configForUrl(const QUrl& url)
95{
96 const auto* const project = Core::self()->projectController()->findProjectForUrl(url);
97 if (project) {
98 auto config = projectConfig(*project);
99 if (projectOverridesSession(config)) {
100 return config;
101 }
102 }
103 return sessionConfig();
104}
105
106void populateStyleFromConfig(SourceFormatterStyle& style, const KConfigGroup& styleConfig)
107{

Callers 1

readFormatterAndStyleMethod · 0.85

Calls 5

projectConfigFunction · 0.85
projectOverridesSessionFunction · 0.85
sessionConfigFunction · 0.85
findProjectForUrlMethod · 0.80
projectControllerMethod · 0.80

Tested by

no test coverage detected