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

Function findItemChild

kdevplatform/project/projectchangesmodel.cpp:112–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112QStandardItem* findItemChild(QStandardItem* parent, const QVariant& value, int role = Qt::DisplayRole)
113{
114 for(int i=0; i<parent->rowCount(); i++) {
115 QStandardItem* curr=parent->child(i);
116
117 if(curr->data(role) == value)
118 return curr;
119 }
120 return nullptr;
121}
122
123QStandardItem* ProjectChangesModel::projectItem(const IProject* project) const
124{

Callers 1

projectItemMethod · 0.70

Calls 3

rowCountMethod · 0.45
childMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected