make QtGui compile when QT_NO_WHEELEVENT is defined
This is necesary but not sufficient to make the small configuration build. Task-number: QTBUG-24816 Change-Id: I1a06555e6f54f4d3c09a34fd50bf76e7b47d469f Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com> Reviewed-by: Tasuku Suzuki <tasuku.suzuki@nokia.com>
This commit is contained in:
parent
b6e26b5b19
commit
2b1a501ac5
@ -1301,6 +1301,7 @@ void QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::Mo
|
||||
|
||||
void QGuiApplicationPrivate::processWheelEvent(QWindowSystemInterfacePrivate::WheelEvent *e)
|
||||
{
|
||||
#ifndef QT_NO_WHEELEVENT
|
||||
QWindow *window = e->window.data();
|
||||
QPointF globalPoint = e->globalPos;
|
||||
QPointF localPoint = e->localPos;
|
||||
@ -1327,6 +1328,7 @@ void QGuiApplicationPrivate::processWheelEvent(QWindowSystemInterfacePrivate::Wh
|
||||
QWheelEvent ev(localPoint, globalPoint, e->pixelDelta, e->angleDelta, e->qt4Delta, e->qt4Orientation, buttons, e->modifiers);
|
||||
ev.setTimestamp(e->timestamp);
|
||||
QGuiApplication::sendSpontaneousEvent(window, &ev);
|
||||
#endif /* ifndef QT_NO_WHEELEVENT */
|
||||
}
|
||||
|
||||
// Remember, Qt convention is: keyboard state is state *before*
|
||||
|
Loading…
x
Reference in New Issue
Block a user