From 6d519554513bd0fa711b403681611f0b7561de12 Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Wed, 2 Sep 2020 13:53:10 +0200 Subject: QmlDesigner: Fix mobile scroll wizard template Change-Id: I00d0467ce4ed28d0135e16c6ae9802ed66a1ff7d Reviewed-by: Thomas Hartmann --- .../templates/wizards/projects/qtquickapplication/scroll/main.qml.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 0ee9d19083..88f3909590 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 } } } -- cgit v1.2.3