diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-07-20 16:13:54 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-07-20 14:28:23 +0000 |
commit | f37afc17cec205bb6b0833100ebb6a958b85e7b7 (patch) | |
tree | 88a5c607619f3b15fc0aaac7dbab6ffd3a362f38 /tests | |
parent | 3c1c3c9727cad2e4e3c1417bb01a6c740d32aae3 (diff) |
Fix tst_tumbler
findView() was iterating recursively the children of the control's
first child, but excluding the siblings. If the background item was
the first child, the contentItem was ignored.
Change-Id: I570361e65fc649234b25eb869c6533660a79a2c7
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/controls/data/tst_tumbler.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/controls/data/tst_tumbler.qml b/tests/auto/controls/data/tst_tumbler.qml index aaf888c2..1fab0dab 100644 --- a/tests/auto/controls/data/tst_tumbler.qml +++ b/tests/auto/controls/data/tst_tumbler.qml @@ -123,7 +123,9 @@ TestCase { return child; } - return findView(child); + var grandChild = findView(child); + if (grandChild) + return grandChild; } return null; |