| 4 | #include "qt3_clust.h" |
| 5 | |
| 6 | static |
| 7 | void include(QRect& r, const QRect& rect) |
| 8 | { |
| 9 | if (rect.left()<r.left()) { |
| 10 | r.setLeft(rect.left()); |
| 11 | } |
| 12 | if (rect.right()>r.right()) { |
| 13 | r.setRight(rect.right()); |
| 14 | } |
| 15 | if (rect.top()<r.top()) { |
| 16 | r.setTop(rect.top()); |
| 17 | } |
| 18 | if (rect.bottom()>r.bottom()) { |
| 19 | r.setBottom(rect.bottom()); |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | /* |
| 24 | A Clusterizer groups rectangles (QRects) into non-overlapping rectangles |