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

Method loadLayout

src/ui/widget.cpp:600–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598}
599
600void 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
619void Widget::saveLayout()
620{

Callers

nothing calls this directly

Calls 2

getLayoutIOMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected