From 6c6fb10ab7e7c685e0cb42d91afe7b8c77847617 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 10 Nov 2016 11:27:46 +0100 Subject: [PATCH] QmlDesigner: Do not use Component in PathView source The Component is not required (implicit component) and the Component item is not allowed in .ui.qml files. Change-Id: I705df5eb5b002f710ba87279083fa282e82639c8 Reviewed-by: Tim Jenssen --- .../qtquickplugin/source/pathviewv2.qml | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/plugins/qmldesigner/qtquickplugin/source/pathviewv2.qml b/src/plugins/qmldesigner/qtquickplugin/source/pathviewv2.qml index 8122bf2d262..693f7035966 100644 --- a/src/plugins/qmldesigner/qtquickplugin/source/pathviewv2.qml +++ b/src/plugins/qmldesigner/qtquickplugin/source/pathviewv2.qml @@ -53,21 +53,19 @@ PathView { colorCode: "green" } } - delegate: Component { - Column { - spacing: 5 - Rectangle { - width: 40 - height: 40 - color: colorCode - anchors.horizontalCenter: parent.horizontalCenter - } - Text { - x: 5 - text: name - anchors.horizontalCenter: parent.horizontalCenter - font.bold: true - } + delegate: Column { + spacing: 5 + Rectangle { + width: 40 + height: 40 + color: colorCode + anchors.horizontalCenter: parent.horizontalCenter + } + Text { + x: 5 + text: name + anchors.horizontalCenter: parent.horizontalCenter + font.bold: true } } }