aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/pathitem/content/item13.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/pathitem/content/item13.qml')
-rw-r--r--examples/quick/pathitem/content/item13.qml24
1 files changed, 13 insertions, 11 deletions
diff --git a/examples/quick/pathitem/content/item13.qml b/examples/quick/pathitem/content/item13.qml
index 21dfa13ff5..b6b7f33265 100644
--- a/examples/quick/pathitem/content/item13.qml
+++ b/examples/quick/pathitem/content/item13.qml
@@ -64,18 +64,20 @@ Rectangle {
PathItem {
anchors.fill: parent
- fillColor: "transparent"
- strokeColor: model.index === 0 ? "red" : "blue"
- strokeStyle: PathItem.DashLine
- strokeWidth: 4
+ VisualPath {
+ fillColor: "transparent"
+ strokeColor: model.index === 0 ? "red" : "blue"
+ strokeStyle: VisualPath.DashLine
+ strokeWidth: 4
- path: Path {
- startX: 4; startY: 4
- PathArc {
- id: arc
- x: 96; y: 96
- radiusX: 100; radiusY: 100
- direction: model.index === 0 ? PathArc.Clockwise : PathArc.Counterclockwise
+ Path {
+ startX: 4; startY: 4
+ PathArc {
+ id: arc
+ x: 96; y: 96
+ radiusX: 100; radiusY: 100
+ direction: model.index === 0 ? PathArc.Clockwise : PathArc.Counterclockwise
+ }
}
}
}