| 498 | emit zoomUpdated(zoom); |
| 499 | } |
| 500 | void Viewer::decreaseZoomFactor() |
| 501 | { |
| 502 | zoom = std::max(zoom - 10, 30); |
| 503 | |
| 504 | if (continuousScroll) { |
| 505 | continuousViewModel->setZoomFactor(zoom); |
| 506 | continuousWidget->invalidateScaledImageCache(); |
| 507 | } else { |
| 508 | updateContentSize(); |
| 509 | } |
| 510 | notificationsLabel->setText(QString::number(getZoomFactor()) + "%"); |
| 511 | notificationsLabel->flash(); |
| 512 | |
| 513 | emit zoomUpdated(zoom); |
| 514 | } |
| 515 | |
| 516 | int Viewer::getZoomFactor() |
| 517 | { |
no test coverage detected