MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / findChild

Method findChild

src/ui/widget.cpp:493–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493Widget* Widget::findChild(const char* id)
494{
495 for (auto child : m_children) {
496 if (child->id() == id)
497 return child;
498 }
499
500 for (auto child : m_children) {
501 auto subchild = child->findChild(id);
502 if (subchild)
503 return subchild;
504 }
505
506 return nullptr;
507}
508
509Widget* Widget::findSibling(const char* id)
510{

Callers 4

onExecuteMethod · 0.80
onExecuteMethod · 0.80
showMethod · 0.80
findSiblingMethod · 0.80

Calls 1

idMethod · 0.45

Tested by

no test coverage detected