Generate touch events with a slightly larger area.
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Thu, 20 Oct 2011 14:27:33 +0000 (17:27 +0300)
committerPaul Olav Tvete <paul.tvete@nokia.com>
Thu, 20 Oct 2011 14:35:37 +0000 (16:35 +0200)
The original size of (1, 1) is not really suitable for applications
like the fingerpaint example app. As there is no area coming
through the protocol we just use a rectangle of size (8, 8) for now.

Change-Id: If3d0c603e8f43310ee37038197afb16a270ebc84
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
src/plugins/platforms/wayland/qwaylandinputdevice.cpp

index 5980b9c..16b10fb 100644 (file)
@@ -436,7 +436,7 @@ void QWaylandInputDevice::handleTouchPoint(int id, int x, int y, Qt::TouchPointS
         qDebug() << "mapped to screen position" << x << y;
 #endif
 
-        tp.area = QRectF(x, y, 1, 1);
+        tp.area = QRectF(x, y, 8, 8);
     }
 
     tp.state = state;