| 483 | } |
| 484 | |
| 485 | void Viewer::increaseZoomFactor() |
| 486 | { |
| 487 | zoom = std::min(zoom + 10, 500); |
| 488 | |
| 489 | if (continuousScroll) { |
| 490 | continuousViewModel->setZoomFactor(zoom); |
| 491 | continuousWidget->invalidateScaledImageCache(); |
| 492 | } else { |
| 493 | updateContentSize(); |
| 494 | } |
| 495 | notificationsLabel->setText(QString::number(getZoomFactor()) + "%"); |
| 496 | notificationsLabel->flash(); |
| 497 | |
| 498 | emit zoomUpdated(zoom); |
| 499 | } |
| 500 | void Viewer::decreaseZoomFactor() |
| 501 | { |
| 502 | zoom = std::max(zoom - 10, 30); |
no test coverage detected