MCPcopy Create free account
hub / github.com/TeXworks/texworks / quadPoints

Method quadPoints

modules/QtPDF/src/PDFAnnotations.cpp:107–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107QPolygonF 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
120void Link::setActionOnActivation(PDFAction * const action)
121{

Callers 2

page_loadLinksMethod · 0.80
operator==Method · 0.80

Calls

no outgoing calls

Tested by 1

page_loadLinksMethod · 0.64