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:
parent
199185ff53
commit
4b996eda57
|
@ -47,7 +47,7 @@ ApplicationWindow {
|
|||
showDirs: false
|
||||
}
|
||||
delegate: ItemDelegate {
|
||||
width: parent.width
|
||||
width: snippetsListView.width
|
||||
text: fileName
|
||||
focusPolicy: Qt.NoFocus
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ QtObject {
|
|||
clip: true
|
||||
model: 20
|
||||
delegate: CheckDelegate {
|
||||
width: parent.width
|
||||
width: ListView.view.width
|
||||
text: "CheckDelegate"
|
||||
focusPolicy: Qt.StrongFocus
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ QtObject {
|
|||
clip: true
|
||||
model: 20
|
||||
delegate: ItemDelegate {
|
||||
width: parent.width
|
||||
width: ListView.view.width
|
||||
text: "ItemDelegate"
|
||||
focusPolicy: Qt.StrongFocus
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ QtObject {
|
|||
clip: true
|
||||
model: 20
|
||||
delegate: RadioDelegate {
|
||||
width: parent.width
|
||||
width: ListView.view.width
|
||||
text: "RadioDelegate"
|
||||
focusPolicy: Qt.StrongFocus
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ QtObject {
|
|||
clip: true
|
||||
model: 20
|
||||
delegate: SwipeDelegate {
|
||||
width: parent.width
|
||||
width: ListView.view.width
|
||||
text: "SwipeDelegate"
|
||||
focusPolicy: Qt.StrongFocus
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ QtObject {
|
|||
clip: true
|
||||
model: 20
|
||||
delegate: SwitchDelegate {
|
||||
width: parent.width
|
||||
width: ListView.view.width
|
||||
text: "SwitchDelegate"
|
||||
focusPolicy: Qt.StrongFocus
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue