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();