MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / fromVirtual

Method fromVirtual

player/NymphCastPlayer/qlitehtmlwidget.cpp:647–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645}
646
647QRect QLiteHtmlWidget::fromVirtual(const QRect &r) const
648{
649 const QPoint tl{int(r.x() * d->zoomFactor), int(r.y() * d->zoomFactor)};
650 // round size up, and add one since the topleft point was rounded down
651 const QSize s{int(r.width() * d->zoomFactor + 0.5) + 1,
652 int(r.height() * d->zoomFactor + 0.5) + 1};
653 return {tl, s};
654}

Callers

nothing calls this directly

Calls 2

widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected