| 470 | } |
| 471 | |
| 472 | bool Widget::setLabel(String const& name, String const& value) { |
| 473 | if (containsChild(name)) { |
| 474 | auto child = fetchChild(name); |
| 475 | if (auto label = as<LabelWidget>(child)) { |
| 476 | label->setText(value); |
| 477 | return true; |
| 478 | } |
| 479 | } |
| 480 | return false; |
| 481 | } |
| 482 | |
| 483 | std::ostream& operator<<(std::ostream& os, Widget const& widget) { |
| 484 | os << widget.toStringImpl(0); |
no test coverage detected