| 729 | } |
| 730 | |
| 731 | void DocumentView::zoomIn(QPointF center) |
| 732 | { |
| 733 | if (center == QPointF(-1, -1)) { |
| 734 | center = d->cursorPosition(); |
| 735 | } |
| 736 | qreal currentZoom = d->mAdapter->zoom(); |
| 737 | |
| 738 | for (qreal zoom : qAsConst(d->mZoomSnapValues)) { |
| 739 | if (zoom > currentZoom + REAL_DELTA) { |
| 740 | d->setZoom(zoom, center); |
| 741 | return; |
| 742 | } |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | void DocumentView::zoomContinuous(int delta, QPointF center) |
| 747 | { |
nothing calls this directly
no test coverage detected