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 <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2016-11-10 11:27:46 +01:00
committed by Thomas Hartmann
parent 9c5e92c714
commit 6c6fb10ab7

View File

@@ -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
}
}
}