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

Method addModel

kdevplatform/shell/problemmodelset.cpp:28–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26ProblemModelSet::~ProblemModelSet() = default;
27
28void ProblemModelSet::addModel(const QString &id, const QString &name, ProblemModel *model)
29{
30 Q_D(ProblemModelSet);
31
32 ModelData m{id, name, model};
33
34 d->data.push_back(m);
35
36 connect(model, &ProblemModel::problemsChanged, this, &ProblemModelSet::problemsChanged);
37
38 emit added(m);
39}
40
41ProblemModel* ProblemModelSet::findModel(const QString &id) const
42{

Callers 1

testAddModelMethod · 0.45

Calls 1

push_backMethod · 0.45

Tested by 1

testAddModelMethod · 0.36