Handle pinch correctly when one point is released and repressed.
authorMartin Jones <martin.jones@nokia.com>
Mon, 25 Jul 2011 03:21:25 +0000 (13:21 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 25 Jul 2011 04:08:56 +0000 (06:08 +0200)
commit647ea955f3d1c45cce978a9b85b4732baf49a040
tree48369fb5ef32a27e2fcfc46c34d32350cbf4da30
parent408ecd82db47aba68b1ab5e4ed48045c24268a7d
Handle pinch correctly when one point is released and repressed.

The pinch is not finished at the time one point is released.  Ensure
that a onPinchStarted is called each time a repress happens, and
that onPinchFinished is called when all points are released.

Fixes: QTBUG-19632

Change-Id: I467dd612383f7dd11d58a9df063dd86860796216
Reviewed-on: http://codereview.qt.nokia.com/2059
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bea Lam <bea.lam@nokia.com>
src/declarative/items/qsgflickable.cpp
src/declarative/items/qsgpincharea.cpp
src/declarative/items/qsgpincharea_p_p.h
tests/auto/declarative/qsgpincharea/data/pinchproperties.qml
tests/auto/declarative/qsgpincharea/tst_qsgpincharea.cpp