MCPcopy Create free account
hub / github.com/MITK/MITK / DescribeLayout

Method DescribeLayout

Plugins/org.blueberry.ui.qt/src/internal/berryLayoutTreeNode.cpp:686–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

684// }
685
686void LayoutTreeNode::DescribeLayout(QString& buf) const
687{
688 if (!(children[0]->IsVisible()))
689 {
690 if (!children[1]->IsVisible())
691 {
692 return;
693 }
694
695 children[1]->DescribeLayout(buf);
696 return;
697 }
698
699 if (!children[1]->IsVisible())
700 {
701 children[0]->DescribeLayout(buf);
702 return;
703 }
704
705 buf.append("("); //$NON-NLS-1$
706 children[0]->DescribeLayout(buf);
707
708 buf.append(this->GetSash()->IsVertical() ? "|" : "-");
709
710 children[1]->DescribeLayout(buf);
711 buf.append(")");
712}
713
714QRect LayoutTreeNode::FlipRect(const QRect& rect)
715{

Callers

nothing calls this directly

Calls 3

GetSashMethod · 0.95
IsVerticalMethod · 0.80
IsVisibleMethod · 0.45

Tested by

no test coverage detected