Do not send double click when neither mouse nor touch was accepted
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Wed, 9 May 2012 06:44:59 +0000 (09:44 +0300)
committerQt by Nokia <qt-info@nokia.com>
Thu, 10 May 2012 07:10:55 +0000 (09:10 +0200)
commit1f99f873ea1c21991e9ca508f33ec48424946864
tree2e5a98713659eb9644d2d75282f4abe73fd8cc97
parent527b700f73c3bc114ba092418ee48626e95014a3
Do not send double click when neither mouse nor touch was accepted

The original fix in change Ief4de360203e55e56f83179075e050f717a12108
worked fine for mouse-based components. However when mixing with
components that handle touch too, the event->isAccepted() condition
gets problematic: It might be true because the touch was accepted, it
does not guarantee the mouse press was accepted.

Change-Id: I00bfff2bd700da84f8cc12cf36430ed381ea320b
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/items/qquickcanvas.cpp