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

Method addProblem

kdevplatform/shell/problemstore.cpp:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void ProblemStore::addProblem(const IProblem::Ptr &problem)
63{
64 Q_D(ProblemStore);
65
66 auto* node = new ProblemNode(d->m_rootNode);
67 node->setProblem(problem);
68 d->m_rootNode->addChild(node);
69
70 d->m_allProblems += problem;
71 emit problemsChanged();
72}
73
74void ProblemStore::setProblems(const QVector<IProblem::Ptr> &problems)
75{

Callers 8

testAddProblemsMethod · 0.45
testNoGroupingMethod · 0.45
testPathGroupingMethod · 0.45
testSeverityGroupingMethod · 0.45
testPlaceholderTextMethod · 0.45
testNoGroupingMethod · 0.45
testPathGroupingMethod · 0.45
testSeverityGroupingMethod · 0.45

Calls 1

addChildMethod · 0.80

Tested by 8

testAddProblemsMethod · 0.36
testNoGroupingMethod · 0.36
testPathGroupingMethod · 0.36
testSeverityGroupingMethod · 0.36
testPlaceholderTextMethod · 0.36
testNoGroupingMethod · 0.36
testPathGroupingMethod · 0.36
testSeverityGroupingMethod · 0.36