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

Method addProblem

kdevplatform/shell/problemmodel.cpp:273–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273void ProblemModel::addProblem(const IProblem::Ptr &problem)
274{
275 Q_D(ProblemModel);
276
277 if (d->m_isPlaceholderShown) {
278 setProblems({ problem });
279 } else {
280 int c = d->m_problems->count();
281 beginInsertRows(QModelIndex(), c, c);
282 d->m_problems->addProblem(problem);
283 endInsertRows();
284 }
285}
286
287void ProblemModel::setProblems(const QVector<IProblem::Ptr> &problems)
288{

Callers

nothing calls this directly

Calls 2

QModelIndexClass · 0.70
countMethod · 0.45

Tested by

no test coverage detected