Require Qt 5.4.

This commit is contained in:
Leonardo Zide
2021-01-08 10:57:39 -08:00
parent b70fab3059
commit ab9df4a712
5 changed files with 6 additions and 30 deletions
-8
View File
@@ -221,11 +221,7 @@ void lcViewWidget::mouseMoveEvent(QMouseEvent* MouseEvent)
void lcViewWidget::wheelEvent(QWheelEvent* WheelEvent)
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0))
if (WheelEvent->angleDelta().y() == 0)
#else
if ((WheelEvent->orientation() & Qt::Vertical) == 0)
#endif
{
WheelEvent->ignore();
return;
@@ -240,11 +236,7 @@ void lcViewWidget::wheelEvent(QWheelEvent* WheelEvent)
#endif
mView->SetMouseModifiers(WheelEvent->modifiers());
#if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0))
mWheelAccumulator += WheelEvent->angleDelta().y() / 8;
#else
mWheelAccumulator += WheelEvent->delta() / 8;
#endif
int numSteps = mWheelAccumulator / 15;
if (numSteps)