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

Method modelForName

plugins/debuggercommon/registers/modelsmanager.cpp:195–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195QStandardItemModel* Models::modelForName(const QString& name) const
196{
197 for (const Model& m : m_models) {
198 if (m.name == name) {
199 return m.model.data();
200 }
201 }
202 return nullptr;
203}
204
205QStandardItemModel* Models::modelForView(QAbstractItemView* view) const
206{

Callers 1

updateModelForGroupMethod · 0.80

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected