| 89 | } |
| 90 | |
| 91 | LayoutPart::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 | |
| 105 | void LayoutTreeNode::DisposeSashes() |
| 106 | { |
nothing calls this directly
no test coverage detected