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

Method addModel

plugins/debuggercommon/registers/modelsmanager.cpp:156–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156QStandardItemModel* Models::addModel(const Model& m)
157{
158 if (!contains(m.name) && !contains(m.view) && !contains(m.model.data())) {
159 m_models.append(m);
160 return m.model.data();
161 }
162 return nullptr;
163}
164
165bool Models::contains(const QString& name) const
166{

Callers 1

addViewMethod · 0.45

Calls 3

containsFunction · 0.50
dataMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected