aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/pathitem/content/item15.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/pathitem/content/item15.qml')
-rw-r--r--examples/quick/pathitem/content/item15.qml42
1 files changed, 23 insertions, 19 deletions
diff --git a/examples/quick/pathitem/content/item15.qml b/examples/quick/pathitem/content/item15.qml
index 9c8786b8de..db6dd6e031 100644
--- a/examples/quick/pathitem/content/item15.qml
+++ b/examples/quick/pathitem/content/item15.qml
@@ -60,17 +60,19 @@ Rectangle {
height: 200
anchors.centerIn: 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: 50; startY: 100
- PathArc {
- x: 150; y: 100
- radiusX: 50; radiusY: 20
- xAxisRotation: model.index === 0 ? 0 : 45
+ Path {
+ startX: 50; startY: 100
+ PathArc {
+ x: 150; y: 100
+ radiusX: 50; radiusY: 20
+ xAxisRotation: model.index === 0 ? 0 : 45
+ }
}
}
}
@@ -83,16 +85,18 @@ Rectangle {
height: 200
anchors.centerIn: parent
- fillColor: "transparent"
- strokeColor: model.index === 0 ? "red" : "blue"
+ VisualPath {
+ fillColor: "transparent"
+ strokeColor: model.index === 0 ? "red" : "blue"
- path: Path {
- startX: 50; startY: 100
- PathArc {
- x: 150; y: 100
- radiusX: 50; radiusY: 20
- xAxisRotation: model.index === 0 ? 0 : 45
- direction: PathArc.Counterclockwise
+ Path {
+ startX: 50; startY: 100
+ PathArc {
+ x: 150; y: 100
+ radiusX: 50; radiusY: 20
+ xAxisRotation: model.index === 0 ? 0 : 45
+ direction: PathArc.Counterclockwise
+ }
}
}
}