From 11b2300a794337f5e1af563300062b2c6ad92716 Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Sun, 10 Mar 2024 16:49:01 +0200 Subject: [PATCH] porting: from deprecated QWheelEvent.delta --- common/tikzpreview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/tikzpreview.cpp b/common/tikzpreview.cpp index e79c2cd..b17f514 100644 --- a/common/tikzpreview.cpp +++ b/common/tikzpreview.cpp @@ -405,7 +405,7 @@ void TikzPreview::setBackgroundColor(QColor color) void TikzPreview::wheelEvent(QWheelEvent *event) { if (event->modifiers() == Qt::ControlModifier) { - if (event->delta() > 0) + if (event->angleDelta().y() > 0) zoomIn(); else zoomOut();