aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/imagine/automotive/qml/automotive.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quickcontrols2/imagine/automotive/qml/automotive.qml')
-rw-r--r--examples/quickcontrols2/imagine/automotive/qml/automotive.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/quickcontrols2/imagine/automotive/qml/automotive.qml b/examples/quickcontrols2/imagine/automotive/qml/automotive.qml
index 91e3bf7c..2c001db2 100644
--- a/examples/quickcontrols2/imagine/automotive/qml/automotive.qml
+++ b/examples/quickcontrols2/imagine/automotive/qml/automotive.qml
@@ -269,6 +269,7 @@ ApplicationWindow {
Layout.preferredHeight: 128
ListView {
+ id: stationListView
clip: true
anchors.fill: parent
@@ -296,7 +297,7 @@ ApplicationWindow {
}
delegate: ItemDelegate {
id: stationDelegate
- width: parent.width
+ width: stationListView.width
height: 22
text: model.name
font.pixelSize: fontSizeExtraSmall