Added Qt version check.

This commit is contained in:
Leonardo Zide 2022-06-05 11:22:44 -07:00
parent 22d4d2c53d
commit 23a93b4afb

View file

@ -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;