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

Method setGrouping

kdevplatform/shell/filteredproblemstore.cpp:270–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270void FilteredProblemStore::setGrouping(int grouping)
271{
272 Q_D(FilteredProblemStore);
273
274 auto g = GroupingMethod(grouping);
275 if(g == d->m_grouping)
276 return;
277
278 d->m_grouping = g;
279
280 switch (g) {
281 case NoGrouping: d->m_strategy.reset(new NoGroupingStrategy(rootNode())); break;
282 case PathGrouping: d->m_strategy.reset(new PathGroupingStrategy(rootNode())); break;
283 case SeverityGrouping: d->m_strategy.reset(new SeverityGroupingStrategy(rootNode())); break;
284 }
285
286 rebuild();
287 emit changed();
288}
289
290int FilteredProblemStore::grouping() const
291{

Callers

nothing calls this directly

Calls 3

GroupingMethodEnum · 0.85
rootNodeFunction · 0.85
resetMethod · 0.45

Tested by

no test coverage detected