Commit cafcaa90 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix compilation on Qt 5.4

parent 42a7a211
......@@ -724,7 +724,11 @@ void processWheelEvent(QWindowSystemInterfacePrivate::WheelEvent *e)
return;
}
#if QT_VERSION >= 0x050500
QWheelEvent ev(localPoint, globalPoint, e->pixelDelta, e->angleDelta, e->qt4Delta, e->qt4Orientation, QGuiApplication::mouseButtons(), e->modifiers, e->phase, e->source);
#else
QWheelEvent ev(localPoint, globalPoint, e->pixelDelta, e->angleDelta, e->qt4Delta, e->qt4Orientation, QGuiApplication::mouseButtons(), e->modifiers, e->phase);
#endif
ev.setTimestamp(e->timestamp);
QGuiApplication::sendEvent(window, &ev);
#endif /* ifndef QT_NO_WHEELEVENT */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment