| 769 | } |
| 770 | |
| 771 | void MoveAndZoomableView::zoomToCustom(bool) |
| 772 | { |
| 773 | bool ok; |
| 774 | int newValue = QInputDialog::getInt(this, |
| 775 | "Zoom to custom value", |
| 776 | "Please select a zoom factor in percent", |
| 777 | 100, |
| 778 | 1, |
| 779 | 2147483647, |
| 780 | 1, |
| 781 | &ok); |
| 782 | if (ok) |
| 783 | zoom(ZoomMode::TO_VALUE, QPoint(), double(newValue) / 100); |
| 784 | } |
| 785 | |
| 786 | void MoveAndZoomableView::setLinkState(bool enabled) |
| 787 | { |