| 684 | // } |
| 685 | |
| 686 | void 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 | |
| 714 | QRect LayoutTreeNode::FlipRect(const QRect& rect) |
| 715 | { |
nothing calls this directly
no test coverage detected