Fix regression in pressDelay behavior.
authorMichael Brasser <michael.brasser@live.com>
Fri, 4 Oct 2013 02:14:08 +0000 (21:14 -0500)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 4 Oct 2013 13:40:52 +0000 (15:40 +0200)
commit717c65e199ed456e5d637d9802422fdefdedeb28
tree1842ec33ee6f935ee9000a6ffa70180e59a73c10
parent9b82136534bfb6877dae6318ab9c7f4259131b0f
Fix regression in pressDelay behavior.

Don't deliver a press event when a Flickable is moved before
the pressDelay expires. This prevents delegates flickering
between pressed and unpressed states when beginning to
flick a Flickable.

Fixes regression introduced by
429af6244518172e19abf7fecd7112f26bac6b31/
d02131e743597b9bd3070d986c61a1c91ea8317a.

Task-number: QTBUG-31168
Change-Id: Id4e853fabe99000837df3681acd8fc4e76d2e9b3
Reviewed-by: Martin Jones <martin.jones@jollamobile.com>
src/quick/items/qquickflickable.cpp
tests/auto/quick/qquickflickable/tst_qquickflickable.cpp