| 1097 | } |
| 1098 | |
| 1099 | void splitViewWidget::onZoomRectUpdateOffsetAndZoom(QRectF zoomRect, double additionalZoomFactor) |
| 1100 | { |
| 1101 | const auto newZoom = this->zoomFactor * additionalZoomFactor; |
| 1102 | if (newZoom < ZOOMINGLIMIT.min || newZoom > ZOOMINGLIMIT.max) |
| 1103 | return; |
| 1104 | |
| 1105 | const auto zoomRectCenterOffset = |
| 1106 | zoomRect.center() - this->getMoveOffsetCoordinateSystemOrigin(this->viewZoomingMousePosStart); |
| 1107 | this->setMoveOffset((this->moveOffset - zoomRectCenterOffset) * additionalZoomFactor); |
| 1108 | this->setZoomFactor(newZoom); |
| 1109 | } |
| 1110 | |
| 1111 | void splitViewWidget::setSplittingPoint(double point, bool setLinkedViews) |
| 1112 | { |
nothing calls this directly
no test coverage detected