aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/gallery
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quickcontrols2/gallery')
-rw-r--r--examples/quickcontrols2/gallery/gallery.qml2
-rw-r--r--examples/quickcontrols2/gallery/pages/DelegatePage.qml1
2 files changed, 1 insertions, 2 deletions
diff --git a/examples/quickcontrols2/gallery/gallery.qml b/examples/quickcontrols2/gallery/gallery.qml
index 44090b8a..504a36c7 100644
--- a/examples/quickcontrols2/gallery/gallery.qml
+++ b/examples/quickcontrols2/gallery/gallery.qml
@@ -173,7 +173,7 @@ ApplicationWindow {
anchors.fill: parent
delegate: ItemDelegate {
- width: parent.width
+ width: listView.width
text: model.title
highlighted: ListView.isCurrentItem
onClicked: {
diff --git a/examples/quickcontrols2/gallery/pages/DelegatePage.qml b/examples/quickcontrols2/gallery/pages/DelegatePage.qml
index 30f07be1..20ceaa6b 100644
--- a/examples/quickcontrols2/gallery/pages/DelegatePage.qml
+++ b/examples/quickcontrols2/gallery/pages/DelegatePage.qml
@@ -110,7 +110,6 @@ Pane {
CheckDelegate {
text: labelText
- width: parent.width
}
}