aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <[email protected]>2024-08-08 11:47:38 +0800
committerMitch Curtis <[email protected]>2024-08-12 10:25:25 +0800
commit4b996eda576b27d230721af71ca5118447fa10e1 (patch)
tree4c9e1b752277539f7f97bde3e06fdc2f13f1207a
parent199185ff53a9fa997ba062a3f73adfe44ec84d50 (diff)
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 <[email protected]>
-rw-r--r--tests/manual/quickcontrols/screenshots/screenshots.qml2
-rw-r--r--tests/manual/quickcontrols/testbench/controls/CheckDelegate.qml2
-rw-r--r--tests/manual/quickcontrols/testbench/controls/ItemDelegate.qml2
-rw-r--r--tests/manual/quickcontrols/testbench/controls/RadioDelegate.qml2
-rw-r--r--tests/manual/quickcontrols/testbench/controls/SwipeDelegate.qml2
-rw-r--r--tests/manual/quickcontrols/testbench/controls/SwitchDelegate.qml2
6 files changed, 6 insertions, 6 deletions
diff --git a/tests/manual/quickcontrols/screenshots/screenshots.qml b/tests/manual/quickcontrols/screenshots/screenshots.qml
index 9c4771920d..72acf3e1ca 100644
--- a/tests/manual/quickcontrols/screenshots/screenshots.qml
+++ b/tests/manual/quickcontrols/screenshots/screenshots.qml
@@ -47,7 +47,7 @@ ApplicationWindow {
showDirs: false
}
delegate: ItemDelegate {
- width: parent.width
+ width: snippetsListView.width
text: fileName
focusPolicy: Qt.NoFocus
diff --git a/tests/manual/quickcontrols/testbench/controls/CheckDelegate.qml b/tests/manual/quickcontrols/testbench/controls/CheckDelegate.qml
index 085b5acc82..4e52566ed0 100644
--- a/tests/manual/quickcontrols/testbench/controls/CheckDelegate.qml
+++ b/tests/manual/quickcontrols/testbench/controls/CheckDelegate.qml
@@ -38,7 +38,7 @@ QtObject {
clip: true
model: 20
delegate: CheckDelegate {
- width: parent.width
+ width: ListView.view.width
text: "CheckDelegate"
focusPolicy: Qt.StrongFocus
}
diff --git a/tests/manual/quickcontrols/testbench/controls/ItemDelegate.qml b/tests/manual/quickcontrols/testbench/controls/ItemDelegate.qml
index 709a8d5b5f..59b8a6460a 100644
--- a/tests/manual/quickcontrols/testbench/controls/ItemDelegate.qml
+++ b/tests/manual/quickcontrols/testbench/controls/ItemDelegate.qml
@@ -29,7 +29,7 @@ QtObject {
clip: true
model: 20
delegate: ItemDelegate {
- width: parent.width
+ width: ListView.view.width
text: "ItemDelegate"
focusPolicy: Qt.StrongFocus
}
diff --git a/tests/manual/quickcontrols/testbench/controls/RadioDelegate.qml b/tests/manual/quickcontrols/testbench/controls/RadioDelegate.qml
index e182cae8ad..65ca8dcbc1 100644
--- a/tests/manual/quickcontrols/testbench/controls/RadioDelegate.qml
+++ b/tests/manual/quickcontrols/testbench/controls/RadioDelegate.qml
@@ -37,7 +37,7 @@ QtObject {
clip: true
model: 20
delegate: RadioDelegate {
- width: parent.width
+ width: ListView.view.width
text: "RadioDelegate"
focusPolicy: Qt.StrongFocus
}
diff --git a/tests/manual/quickcontrols/testbench/controls/SwipeDelegate.qml b/tests/manual/quickcontrols/testbench/controls/SwipeDelegate.qml
index 36d683a8ac..df6de6aacd 100644
--- a/tests/manual/quickcontrols/testbench/controls/SwipeDelegate.qml
+++ b/tests/manual/quickcontrols/testbench/controls/SwipeDelegate.qml
@@ -48,7 +48,7 @@ QtObject {
clip: true
model: 20
delegate: SwipeDelegate {
- width: parent.width
+ width: ListView.view.width
text: "SwipeDelegate"
focusPolicy: Qt.StrongFocus
diff --git a/tests/manual/quickcontrols/testbench/controls/SwitchDelegate.qml b/tests/manual/quickcontrols/testbench/controls/SwitchDelegate.qml
index 6fe3ecefce..686b38f9ad 100644
--- a/tests/manual/quickcontrols/testbench/controls/SwitchDelegate.qml
+++ b/tests/manual/quickcontrols/testbench/controls/SwitchDelegate.qml
@@ -31,7 +31,7 @@ QtObject {
clip: true
model: 20
delegate: SwitchDelegate {
- width: parent.width
+ width: ListView.view.width
text: "SwitchDelegate"
focusPolicy: Qt.StrongFocus
}