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

Method removeModel

kdevplatform/shell/problemmodelset.cpp:52–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void ProblemModelSet::removeModel(const QString &id)
53{
54 Q_D(ProblemModelSet);
55
56 QVector<ModelData>::iterator itr = d->data.begin();
57
58 while (itr != d->data.end()) {
59 if(itr->id == id)
60 break;
61 ++itr;
62 }
63
64 if(itr != d->data.end()) {
65 (*itr).model->disconnect(this);
66 d->data.erase(itr);
67 emit removed(id);
68 }
69}
70
71void ProblemModelSet::showModel(const QString &id)
72{

Callers 7

testRemoveModelMethod · 0.45
~CompileAnalyzerMethod · 0.45
~ProblemModelMethod · 0.45
unloadMethod · 0.45
unloadMethod · 0.45
unloadMethod · 0.45
testRemoveModelMethod · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 4

testRemoveModelMethod · 0.36
unloadMethod · 0.36
unloadMethod · 0.36
testRemoveModelMethod · 0.36