From 23a93b4afbfeb2c22c294e7188402b6aaab9e2bd Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Sun, 5 Jun 2022 11:22:44 -0700 Subject: [PATCH] Added Qt version check. --- common/lc_viewwidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/lc_viewwidget.cpp b/common/lc_viewwidget.cpp index a30b492f..e4c2d563 100644 --- a/common/lc_viewwidget.cpp +++ b/common/lc_viewwidget.cpp @@ -230,7 +230,9 @@ void lcViewWidget::wheelEvent(QWheelEvent* WheelEvent) return; case Qt::ScrollUpdate: +#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)) case Qt::ScrollMomentum: +#endif mView->UpdatePanGesture(WheelEvent->pixelDelta().x(), -WheelEvent->pixelDelta().y()); WheelEvent->accept(); return;