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

Method ComputeRelation

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

Source from the content-addressed store, hash-verified

89}
90
91LayoutPart::Pointer LayoutTreeNode::ComputeRelation(
92 QList<PartSashContainer::RelationshipInfo>& relations)
93{
94 PartSashContainer::RelationshipInfo r =
95 PartSashContainer::RelationshipInfo();
96 r.relative = children[0]->ComputeRelation(relations);
97 r.part = children[1]->ComputeRelation(relations);
98 r.left = this->GetSash()->GetLeft();
99 r.right = this->GetSash()->GetRight();
100 r.relationship = this->GetSash()->IsVertical() ? IPageLayout::RIGHT : IPageLayout::BOTTOM;
101 relations.push_front(r);
102 return r.relative;
103}
104
105void LayoutTreeNode::DisposeSashes()
106{

Callers

nothing calls this directly

Calls 5

GetSashMethod · 0.95
RelationshipInfoClass · 0.85
GetLeftMethod · 0.80
GetRightMethod · 0.80
IsVerticalMethod · 0.80

Tested by

no test coverage detected