@@ -202,7 +202,7 @@ void TouchDispatcher::dispatchAsMouse(
202 for (int i = 0; i < touchPoints.count() && !touchMouse; ++i) {
202 for (int i = 0; i < touchPoints.count() && !touchMouse; ++i) {
203 const auto &touchPoint = touchPoints.at(i);
203 const auto &touchPoint = touchPoints.at(i);
204 if (touchPoint.id() == m_touchMouseId) {
204 if (touchPoint.id() == m_touchMouseId) {
205− touchMouse = &touchPoint;
205+ touchMouse = &touchPoint;
@@ -234,7 +234,7 @@ void TouchDispatcher::dispatchAsMouse(
234 m_touchMouseId = -1;
234 m_touchMouseId = -1;
236 eventType = QEvent::MouseMove;
236 eventType = QEvent::MouseMove;
239 QScopedPointer<QMouseEvent> mouseEvent(touchToMouseEvent(eventType, *touchMouse, timestamp, modifiers,
239 QScopedPointer<QMouseEvent> mouseEvent(touchToMouseEvent(eventType, *touchMouse, timestamp, modifiers,
240 true /* transformNeeded */));
240 true /* transformNeeded */));
@@ -322,4 +322,3 @@ QMouseEvent *TouchDispatcher::touchToMouseEvent(
322 //QGuiApplicationPrivate::setMouseEventSource(me, Qt::MouseEventSynthesizedByQt);
322 //QGuiApplicationPrivate::setMouseEventSource(me, Qt::MouseEventSynthesizedByQt);
323 return me;
323 return me;