aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--share/qtcreator/templates/wizards/projects/qtquickapplication/scroll/main.qml.tpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/qtcreator/templates/wizards/projects/qtquickapplication/scroll/main.qml.tpl b/share/qtcreator/templates/wizards/projects/qtquickapplication/scroll/main.qml.tpl
index 0ee9d190834..88f3909590c 100644
--- a/share/qtcreator/templates/wizards/projects/qtquickapplication/scroll/main.qml.tpl
+++ b/share/qtcreator/templates/wizards/projects/qtquickapplication/scroll/main.qml.tpl
@@ -17,11 +17,12 @@ ApplicationWindow {
anchors.fill: parent
ListView {
+ id: listView
width: parent.width
model: 20
delegate: ItemDelegate {
text: "Item " + (index + 1)
- width: parent.width
+ width: listView.width
}
}
}