Fix warnings in ListView delegate width bindings in manual tests

Bind width to the ListView's width, not the parent, which may be null.

Pick-to: 6.5 6.7 6.8
Change-Id: I020d23bb0c98b3da00db9ffd3400a89cfdeb1810
Reviewed-by: Doris Verria <doris.verria@qt.io>
This commit is contained in:
Mitch Curtis 2024-08-08 11:47:38 +08:00
parent 199185ff53
commit 4b996eda57
6 changed files with 6 additions and 6 deletions

View File

@ -47,7 +47,7 @@ ApplicationWindow {
showDirs: false
}
delegate: ItemDelegate {
width: parent.width
width: snippetsListView.width
text: fileName
focusPolicy: Qt.NoFocus

View File

@ -38,7 +38,7 @@ QtObject {
clip: true
model: 20
delegate: CheckDelegate {
width: parent.width
width: ListView.view.width
text: "CheckDelegate"
focusPolicy: Qt.StrongFocus
}

View File

@ -29,7 +29,7 @@ QtObject {
clip: true
model: 20
delegate: ItemDelegate {
width: parent.width
width: ListView.view.width
text: "ItemDelegate"
focusPolicy: Qt.StrongFocus
}

View File

@ -37,7 +37,7 @@ QtObject {
clip: true
model: 20
delegate: RadioDelegate {
width: parent.width
width: ListView.view.width
text: "RadioDelegate"
focusPolicy: Qt.StrongFocus
}

View File

@ -48,7 +48,7 @@ QtObject {
clip: true
model: 20
delegate: SwipeDelegate {
width: parent.width
width: ListView.view.width
text: "SwipeDelegate"
focusPolicy: Qt.StrongFocus

View File

@ -31,7 +31,7 @@ QtObject {
clip: true
model: 20
delegate: SwitchDelegate {
width: parent.width
width: ListView.view.width
text: "SwitchDelegate"
focusPolicy: Qt.StrongFocus
}