| 105 | } |
| 106 | |
| 107 | QPolygonF Link::quadPoints() const |
| 108 | { |
| 109 | if (_quadPoints.isEmpty()) |
| 110 | return QPolygonF(rect()); |
| 111 | // The PDF specs (1.7) state that: "QuadPoints should be ignored if any |
| 112 | // coordinate in the array lies outside the region specified by Rect." |
| 113 | foreach (QPointF p, _quadPoints) { |
| 114 | if (!rect().contains(p)) |
| 115 | return QPolygonF(rect()); |
| 116 | } |
| 117 | return _quadPoints; |
| 118 | } |
| 119 | |
| 120 | void Link::setActionOnActivation(PDFAction * const action) |
| 121 | { |
no outgoing calls