diff options
author | Martin Jones <martin.jones@nokia.com> | 2011-07-29 09:29:04 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-07-29 04:08:13 +0200 |
commit | 44f82f2078897270622581e1c3f385d12c3aba42 (patch) | |
tree | 6ed42ab4fb990a8722dd35bf92dd45ec99a429c7 /tests/auto/qtquick1/qdeclarativeflickable/data/disabled.qml | |
parent | 2b9cccc859edb271f84728350d1a7666bbba111f (diff) |
Clicking on a disabled ListView's delegate breaks mouse interaction
A disabled Flickable should not filter children.
Change-Id: I9f0d8fbfd0922b5c6a9eaffa69212867359f79e0
Fixes: QTBUG-20584
Reviewed-on: http://codereview.qt.nokia.com/2354
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Diffstat (limited to 'tests/auto/qtquick1/qdeclarativeflickable/data/disabled.qml')
-rw-r--r-- | tests/auto/qtquick1/qdeclarativeflickable/data/disabled.qml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/auto/qtquick1/qdeclarativeflickable/data/disabled.qml b/tests/auto/qtquick1/qdeclarativeflickable/data/disabled.qml new file mode 100644 index 0000000000..ac63cd461b --- /dev/null +++ b/tests/auto/qtquick1/qdeclarativeflickable/data/disabled.qml @@ -0,0 +1,30 @@ +import QtQuick 1.0 + +Rectangle { + id: root + width: 100; height: 100 + property bool clicked: false + + Flickable { + objectName: "flickable" + width: 100; height: 100 + contentWidth: column.width; contentHeight: column.height + enabled: false + + Column { + id: column + Repeater { + model: 4 + Rectangle { + width: 200; height: 300; color: "blue" + MouseArea { anchors.fill: parent; onClicked: { } } + } + } + } + } + + MouseArea { + width: 100; height: 30 + onClicked: root.clicked = true + } +} |