| 598 | } |
| 599 | |
| 600 | void Widget::loadLayout() |
| 601 | { |
| 602 | if (!m_id.empty()) { |
| 603 | LayoutIO* io = manager()->getLayoutIO(); |
| 604 | if (io) { |
| 605 | std::string layout = io->loadLayout(this); |
| 606 | if (!layout.empty()) { |
| 607 | std::stringstream s(layout); |
| 608 | LoadLayoutEvent ev(this, s); |
| 609 | onLoadLayout(ev); |
| 610 | } |
| 611 | } |
| 612 | } |
| 613 | |
| 614 | // Do for all children |
| 615 | for (auto child : m_children) |
| 616 | child->loadLayout(); |
| 617 | } |
| 618 | |
| 619 | void Widget::saveLayout() |
| 620 | { |
nothing calls this directly
no test coverage detected