QTouchEvent::TouchPoint::isPrimary() is gone.
authorSamuel Rødal <samuel.rodal@nokia.com>
Fri, 13 Jan 2012 09:15:35 +0000 (10:15 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 13 Jan 2012 16:13:32 +0000 (17:13 +0100)
Change-Id: I6fbaac28a060fd527e0226d55419a9055125368a
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/quick/items/qquickcanvas.cpp

index cdf6b6d..9b29a44 100644 (file)
@@ -348,7 +348,7 @@ void QQuickCanvasPrivate::translateTouchEvent(QTouchEvent *touchEvent)
         touchPoint.setStartScenePos(touchPoint.startPos());
         touchPoint.setLastScenePos(touchPoint.lastPos());
 
-        if (touchPoint.isPrimary())
+        if (i == 0)
             lastMousePosition = touchPoint.pos().toPoint();
     }
     touchEvent->setTouchPoints(touchPoints);