QML test: Fix annoying warning in tst_animatedimage.qml

Fix a bunch of warnings "tst_animatedimage.qml:90:17: TypeError: Cannot
read property 'width' of null" during the test run.

Pick-to: 6.5
Change-Id: I9a1fcd5d8e2ff81768bed1cd1fb94f22940c617b
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
This commit is contained in:
Vladimir Belyavsky 2023-01-30 17:05:01 +03:00
parent 07185214dd
commit e4d627e129
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ Item {
model: 5000
delegate: Item {
height: 10
width: parent.width
width: ListView.view.width
Text {
anchors.fill: parent
text: index