| 482 | } |
| 483 | |
| 484 | bool Widget::hasAncestor(Widget* ancestor) |
| 485 | { |
| 486 | for (Widget* widget=m_parent; widget; widget=widget->m_parent) { |
| 487 | if (widget == ancestor) |
| 488 | return true; |
| 489 | } |
| 490 | return false; |
| 491 | } |
| 492 | |
| 493 | Widget* Widget::findChild(const char* id) |
| 494 | { |