mirror of
https://github.com/leozide/leocad
synced 2024-11-16 07:47:27 +01:00
Added Qt version check.
This commit is contained in:
parent
22d4d2c53d
commit
23a93b4afb
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue