Commit 6c6fb10a authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Thomas Hartmann

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's avatarTim Jenssen <tim.jenssen@qt.io>
parent 9c5e92c7
...@@ -53,21 +53,19 @@ PathView { ...@@ -53,21 +53,19 @@ PathView {
colorCode: "green" colorCode: "green"
} }
} }
delegate: Component { delegate: Column {
Column { spacing: 5
spacing: 5 Rectangle {
Rectangle { width: 40
width: 40 height: 40
height: 40 color: colorCode
color: colorCode anchors.horizontalCenter: parent.horizontalCenter
anchors.horizontalCenter: parent.horizontalCenter }
} Text {
Text { x: 5
x: 5 text: name
text: name anchors.horizontalCenter: parent.horizontalCenter
anchors.horizontalCenter: parent.horizontalCenter font.bold: true
font.bold: true
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment