| 645 | } |
| 646 | |
| 647 | QRect 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 | } |