aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/shapes/content/item4.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/shapes/content/item4.qml')
-rw-r--r--examples/quick/shapes/content/item4.qml34
1 files changed, 16 insertions, 18 deletions
diff --git a/examples/quick/shapes/content/item4.qml b/examples/quick/shapes/content/item4.qml
index 5f0704a48d..2b20c0a263 100644
--- a/examples/quick/shapes/content/item4.qml
+++ b/examples/quick/shapes/content/item4.qml
@@ -58,30 +58,28 @@ Rectangle {
anchors.fill: parent
ShapePath {
+ id: p
strokeWidth: 5
strokeColor: "blue"
strokeStyle: ShapePath.DashLine
dashPattern: [ 1, 4, 4, 4 ]
fillColor: "lightBlue"
- Path {
- id: p
- property real xr: 70
- property real yr: 30
- startX: shape.width / 2 - xr
- startY: shape.height / 2 - yr
- PathArc {
- x: shape.width / 2 + p.xr
- y: shape.height / 2 + p.yr
- radiusX: p.xr; radiusY: p.yr
- useLargeArc: true
- }
- PathArc {
- x: shape.width / 2 - p.xr
- y: shape.height / 2 - p.yr
- radiusX: p.xr; radiusY: p.yr
- useLargeArc: true
- }
+ property real xr: 70
+ property real yr: 30
+ startX: shape.width / 2 - xr
+ startY: shape.height / 2 - yr
+ PathArc {
+ x: shape.width / 2 + p.xr
+ y: shape.height / 2 + p.yr
+ radiusX: p.xr; radiusY: p.yr
+ useLargeArc: true
+ }
+ PathArc {
+ x: shape.width / 2 - p.xr
+ y: shape.height / 2 - p.yr
+ radiusX: p.xr; radiusY: p.yr
+ useLargeArc: true
}
}
}