aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/pathitem/content/item5.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/pathitem/content/item5.qml')
-rw-r--r--examples/quick/pathitem/content/item5.qml40
1 files changed, 21 insertions, 19 deletions
diff --git a/examples/quick/pathitem/content/item5.qml b/examples/quick/pathitem/content/item5.qml
index 2e22574064..d1a8447cc1 100644
--- a/examples/quick/pathitem/content/item5.qml
+++ b/examples/quick/pathitem/content/item5.qml
@@ -56,25 +56,27 @@ Rectangle {
width: 200
height: 150
anchors.centerIn: parent
- strokeWidth: 4
- strokeColor: "red"
- fillGradient: PathLinearGradient {
- x1: 20; y1: 20
- x2: 180; y2: 130
- PathGradientStop { position: 0; color: "blue" }
- PathGradientStop { position: 0.2; color: "green" }
- PathGradientStop { position: 0.4; color: "red" }
- PathGradientStop { position: 0.6; color: "yellow" }
- PathGradientStop { position: 1; color: "cyan" }
- }
- fillColor: "blue" // ignored with the gradient set
- strokeStyle: PathItem.DashLine
- dashPattern: [ 1, 4 ]
- path: Path {
- startX: 20; startY: 20
- PathLine { x: 180; y: 130 }
- PathLine { x: 20; y: 130 }
- PathLine { x: 20; y: 20 }
+ VisualPath {
+ strokeWidth: 4
+ strokeColor: "red"
+ fillGradient: PathLinearGradient {
+ x1: 20; y1: 20
+ x2: 180; y2: 130
+ PathGradientStop { position: 0; color: "blue" }
+ PathGradientStop { position: 0.2; color: "green" }
+ PathGradientStop { position: 0.4; color: "red" }
+ PathGradientStop { position: 0.6; color: "yellow" }
+ PathGradientStop { position: 1; color: "cyan" }
+ }
+ fillColor: "blue" // ignored with the gradient set
+ strokeStyle: VisualPath.DashLine
+ dashPattern: [ 1, 4 ]
+ Path {
+ startX: 20; startY: 20
+ PathLine { x: 180; y: 130 }
+ PathLine { x: 20; y: 130 }
+ PathLine { x: 20; y: 20 }
+ }
}
transform: Rotation { origin.x: 100; origin.y: 50; axis { x: 0; y: 1; z: 0 }
SequentialAnimation on angle {