| 843 | } |
| 844 | |
| 845 | void LayoutHelper::increaseVerticalSpacing(std::vector<Node*>& nodes, float theSpacing) |
| 846 | { |
| 847 | if (nodes.size() < 2) |
| 848 | return; |
| 849 | |
| 850 | std::sort(nodes.begin(), nodes.end(), |
| 851 | [](Node* const left, Node* const right) -> bool { return getNodeTop(left) < getNodeTop(right); }); |
| 852 | |
| 853 | for (size_t idx = 1; idx < nodes.size(); ++idx) |
| 854 | { |
| 855 | nodes[idx]->setPositionY(nodes[idx]->getPositionY() - theSpacing * idx); |
| 856 | } |
| 857 | } |
| 858 | |
| 859 | void LayoutHelper::decreaseHorizontalSpacing(std::vector<Node*>& nodes, float theSpacing) |
| 860 | { |
nothing calls this directly
no test coverage detected