diff options
author | Martin Jones <martin.jones@qinetic.com.au> | 2016-09-16 17:32:58 +1000 |
---|---|---|
committer | Martin Jones <martin.jones@qinetic.com.au> | 2016-09-22 22:24:28 +0000 |
commit | e05fbf5c8bf636db5c500c3371d673de17de8c33 (patch) | |
tree | eb2acd660ed3547662948f79c5c334b5ea0930e4 /tests/auto/quick/qquickmousearea/data | |
parent | ad48b299b7fe0bbed2749adc66725e4f12661f79 (diff) |
Fix MouseArea sticky grab with drag.filterChildren enabled
Task-number: QTBUG-56036
Change-Id: Iad776f42cc776e0d397173b3d2f3922eb7914392
Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
Diffstat (limited to 'tests/auto/quick/qquickmousearea/data')
-rw-r--r-- | tests/auto/quick/qquickmousearea/data/nestedFlickableStopAtBounds.qml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickmousearea/data/nestedFlickableStopAtBounds.qml b/tests/auto/quick/qquickmousearea/data/nestedFlickableStopAtBounds.qml new file mode 100644 index 0000000000..0d5b496766 --- /dev/null +++ b/tests/auto/quick/qquickmousearea/data/nestedFlickableStopAtBounds.qml @@ -0,0 +1,44 @@ +import QtQuick 2.5 + + +Rectangle { + width: 240 + height: 320 + + MouseArea { + objectName: "mouseArea" + anchors.fill: parent + + drag.target: moveable + drag.filterChildren: true + + Rectangle { + id: moveable + objectName: "moveable" + color: "red" + x: 50 + y: 80 + width: 200 + height: 200 + } + + Flickable { + objectName: "flickable" + anchors.fill: parent + contentHeight: 450 + + Rectangle { + x: 100 + y: 50 + width: 50 + height: 350 + color: "yellow" + } + + MouseArea { + width: 240 + height: 450 + } + } + } +} |