diff options
Diffstat (limited to 'tests/auto/controls/data/tst_splitview.qml')
-rw-r--r-- | tests/auto/controls/data/tst_splitview.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/controls/data/tst_splitview.qml b/tests/auto/controls/data/tst_splitview.qml index ae8179b2..d78ef95a 100644 --- a/tests/auto/controls/data/tst_splitview.qml +++ b/tests/auto/controls/data/tst_splitview.qml @@ -1609,7 +1609,7 @@ TestCase { verify(control) while (control.count > 0) - var itemToRemove = control.removeItem(0) + var itemToRemove = control.removeItem(control.itemAt(0)) // Shouldn't crash. } @@ -1940,7 +1940,7 @@ TestCase { verify(firstHandle.SplitHandle.pressed) // Then, remove it by removing the first item. - control.removeItem(0) + control.removeItem(control.itemAt(0)) handles = findHandles(control) firstHandle = null compare(handles.length, 1) |