| 617 | } |
| 618 | |
| 619 | void Widget::saveLayout() |
| 620 | { |
| 621 | if (!m_id.empty()) { |
| 622 | LayoutIO* io = manager()->getLayoutIO(); |
| 623 | if (io) { |
| 624 | std::stringstream s; |
| 625 | SaveLayoutEvent ev(this, s); |
| 626 | onSaveLayout(ev); |
| 627 | |
| 628 | std::string layout = s.str(); |
| 629 | if (!layout.empty()) |
| 630 | io->saveLayout(this, layout); |
| 631 | } |
| 632 | } |
| 633 | |
| 634 | // Do for all children |
| 635 | for (auto child : m_children) |
| 636 | child->saveLayout(); |
| 637 | } |
| 638 | |
| 639 | void Widget::setDecorativeWidgetBounds() |
| 640 | { |
nothing calls this directly
no test coverage detected