MCPcopy Create free account
hub / github.com/KDE/okular / SourceRefObjectRect

Method SourceRefObjectRect

core/area.cpp:468–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466/** class SourceRefObjectRect **/
467
468SourceRefObjectRect::SourceRefObjectRect(const NormalizedPoint &point, void *srcRef)
469 : ObjectRect(point.x, point.y, .0, .0, false, SourceRef, srcRef)
470 , m_point(point)
471{
472 const double x = m_point.x < 0.0 ? 0.5 : m_point.x;
473 const double y = m_point.y < 0.0 ? 0.5 : m_point.y;
474 const QRectF rect(x - 2, y - 2, 5, 5);
475 m_path.addRect(rect);
476
477 m_transformedPath = m_path;
478}
479
480QRect SourceRefObjectRect::boundingRect(double xScale, double yScale) const
481{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected