Use use touch events to generate mouse events in Quick canvas.
authorMartin Jones <martin.jones@nokia.com>
Thu, 9 Feb 2012 05:28:29 +0000 (15:28 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 10 Feb 2012 01:55:35 +0000 (02:55 +0100)
commiteb447afb375e122c3be1c56affbf944f8687f1b6
tree6b7b7a227f7758f6421382ac6e2b2f9a822763fa
parent9c1793913da9c504b8ef384795d564dc304950a7
Use use touch events to generate mouse events in Quick canvas.

Allowing the canvas to deal with mouse event emulation provides
a couple of advantages: 1. touches outside a reactive area can
be ignored, allowing a touch within a reactive area to become
the "mouse touch". 2. we can extend the mouse events with
data available in touch events for use within the quick elements;
specifically velocity in this case.

Change-Id: Id9df397f1a3a03dbda2ef5dcf6189e7eb3377356
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/quick/items/qquickcanvas.cpp
src/quick/items/qquickcanvas_p.h
src/quick/items/qquickevents_p_p.h
src/quick/items/qquickflickable.cpp