Verified Commit dcf34b85 authored by Antonio Prcela's avatar Antonio Prcela 🏞
Browse files

Fix zoom with F or middle mouse click caused by the introduction of the spinbox in 2cdaca95

With the introduction of the spin box, the F button / middle mouse click don't work properly anymore.
Problem caused because the spinbox did an emitZoomChanged even tho the zoom was changed by something else than the spinbox. In the case from the bug report it is 'Fit to window'.
Spin box emits now only after it had focus - either by mouse scroll change or manually typing a value into it.

BUG: 432075
parent 354e8e99
......@@ -191,7 +191,9 @@ void ZoomWidget::setZoom(qreal zoom)
void ZoomWidget::setCustomZoomFromSpinBox(qreal zoom)
setZoom(zoom / PRECISION);
if (d->mZoomSpinBox->hasFocus()) {
void ZoomWidget::setMinimumZoom(qreal minimumZoom)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment