diff options
author | Martin Jones <martin.jones@jollamobile.com> | 2012-11-26 09:33:20 +1000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-26 02:00:02 +0100 |
commit | 429af6244518172e19abf7fecd7112f26bac6b31 (patch) | |
tree | 13d5f0f442556721929655ce315d72d73a4765e9 /tests/auto/quick/qquickflickable/data/nestedPressDelay.qml | |
parent | 417403f803c03d177c8563878e06b95a15f0d4df (diff) |
Nested Flickables with pressDelay flick incorrect Flickable
If the gesture is triggered within the pressDelay the outer Flickable
will always handle the gesture. When the drag distance is exceeded
replay the press event to allow all Flickables an opportunity to
process the gesture normally.
Task-number: QTBUG-28189
Change-Id: I36912cc19a48c90ae7a9a430580a8f40071bd5fd
Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
Diffstat (limited to 'tests/auto/quick/qquickflickable/data/nestedPressDelay.qml')
-rw-r--r-- | tests/auto/quick/qquickflickable/data/nestedPressDelay.qml | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/tests/auto/quick/qquickflickable/data/nestedPressDelay.qml b/tests/auto/quick/qquickflickable/data/nestedPressDelay.qml index 60dadcc73c..557b7c4117 100644 --- a/tests/auto/quick/qquickflickable/data/nestedPressDelay.qml +++ b/tests/auto/quick/qquickflickable/data/nestedPressDelay.qml @@ -8,24 +8,30 @@ Flickable { contentHeight: 320 flickableDirection: Flickable.HorizontalFlick pressDelay: 50 - Flickable { - objectName: "innerFlickable" - flickableDirection: Flickable.VerticalFlick - width: 480 - height: 320 - contentWidth: 480 - contentHeight: 400 - pressDelay: 10000 - Rectangle { - y: 100 - anchors.horizontalCenter: parent.horizontalCenter - width: 240 - height: 100 - color: ma.pressed ? 'blue' : 'green' - MouseArea { - id: ma - objectName: "mouseArea" - anchors.fill: parent + Rectangle { + x: 20 + y: 20 + width: 400 + height: 300 + color: "yellow" + Flickable { + objectName: "innerFlickable" + anchors.fill: parent + flickableDirection: Flickable.HorizontalFlick + contentWidth: 1480 + contentHeight: 400 + pressDelay: 10000 + Rectangle { + y: 100 + x: 80 + width: 240 + height: 100 + color: ma.pressed ? 'blue' : 'green' + MouseArea { + id: ma + objectName: "mouseArea" + anchors.fill: parent + } } } } |