| 53 | { |
| 54 | public: |
| 55 | void push(qreal pos, const int triRadius) |
| 56 | { |
| 57 | if(ranges.isEmpty()) |
| 58 | { |
| 59 | ranges.push_back({pos, pos}); |
| 60 | return; |
| 61 | } |
| 62 | |
| 63 | QPair<qreal, qreal> &range = ranges.back(); |
| 64 | |
| 65 | if(range.second + triRadius >= pos) |
| 66 | range.second = pos; |
| 67 | else |
| 68 | ranges.push_back({pos, pos}); |
| 69 | } |
| 70 | |
| 71 | QPainterPath makePath(const int triRadius, const int triHeight, qreal y) |
| 72 | { |
no test coverage detected