From a8c2283cbed86fd4ea88386c766a9222f9d3a2f2 Mon Sep 17 00:00:00 2001 From: Laurent Trinques Date: Sun, 14 Jun 2020 14:29:59 +0200 Subject: [PATCH] hot fix zoom and scrolling bug: was only zoom In (int QPoint::manhattanLength() const Returns the sum of the absolute values) --- sources/titleblock/templateview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/titleblock/templateview.cpp b/sources/titleblock/templateview.cpp index 151c4d531..38116aa72 100644 --- a/sources/titleblock/templateview.cpp +++ b/sources/titleblock/templateview.cpp @@ -511,7 +511,7 @@ qreal TitleBlockTemplateView::templateHeight() const { void TitleBlockTemplateView::wheelEvent(QWheelEvent *e) { // si la touche Ctrl est enfoncee, on zoome / dezoome if (e -> modifiers() & Qt::ControlModifier) { - if (e -> angleDelta().manhattanLength() > 0) { + if (e -> delta() > 0) { zoomIn(); } else { zoomOut();