aboutsummaryrefslogtreecommitdiffstats
path: root/tests/baseline/scenegraph/data/shape/shape_arc_fill.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/baseline/scenegraph/data/shape/shape_arc_fill.qml')
-rw-r--r--tests/baseline/scenegraph/data/shape/shape_arc_fill.qml187
1 files changed, 99 insertions, 88 deletions
diff --git a/tests/baseline/scenegraph/data/shape/shape_arc_fill.qml b/tests/baseline/scenegraph/data/shape/shape_arc_fill.qml
index fefc2ec3eb..f822d6b53f 100644
--- a/tests/baseline/scenegraph/data/shape/shape_arc_fill.qml
+++ b/tests/baseline/scenegraph/data/shape/shape_arc_fill.qml
@@ -1,108 +1,119 @@
import QtQuick 2.9
-import QtQuick.Shapes 1.0
+import QtQuick.Shapes 6.6
Item {
width: 320
height: 480
- Column {
- Item {
- width: 200
- height: 100
-
- Repeater {
- model: 2
- Shape {
- anchors.fill: parent
- vendorExtensionsEnabled: false
-
- ShapePath {
- fillColor: "lightBlue"
- strokeColor: model.index === 0 ? "red" : "blue"
- strokeStyle: ShapePath.DashLine
- strokeWidth: 4
-
- startX: 4; startY: 4
- PathArc {
- id: arc
- x: 96; y: 96
- radiusX: 100; radiusY: 100
- direction: model.index === 0 ? PathArc.Clockwise : PathArc.Counterclockwise
+ ListModel {
+ id: renderers
+ ListElement { renderer: Shape.GeometryRenderer }
+ ListElement { renderer: Shape.CurveRenderer }
+ }
+
+ Row {
+ Repeater {
+ model: renderers
+ Column {
+ Item {
+ width: 160
+ height: 100
+
+ Repeater {
+ model: 2
+ Shape {
+ anchors.fill: parent
+ preferredRendererType: renderer
+
+ ShapePath {
+ fillColor: "lightBlue"
+ strokeColor: model.index === 0 ? "red" : "blue"
+ strokeStyle: ShapePath.DashLine
+ strokeWidth: 4
+
+ startX: 4; startY: 4
+ PathArc {
+ id: arc
+ x: 96; y: 96
+ radiusX: 100; radiusY: 100
+ direction: model.index === 0 ? PathArc.Clockwise : PathArc.Counterclockwise
+ }
+ }
}
}
}
- }
- }
- Item {
- width: 200
- height: 100
-
- Repeater {
- model: 2
- Shape {
- anchors.fill: parent
- vendorExtensionsEnabled: false
-
- ShapePath {
- fillColor: "green"
- strokeColor: model.index === 0 ? "red" : "blue"
- strokeStyle: ShapePath.DashLine
- strokeWidth: 4
-
- startX: 50; startY: 100
- PathArc {
- x: 100; y: 150
- radiusX: 50; radiusY: 50
- useLargeArc: model.index === 1
+ Item {
+ width: 160
+ height: 100
+
+ Repeater {
+ model: 2
+ Shape {
+ anchors.fill: parent
+ preferredRendererType: renderer
+
+ ShapePath {
+ fillColor: "green"
+ strokeColor: model.index === 0 ? "red" : "blue"
+ strokeStyle: ShapePath.DashLine
+ strokeWidth: 4
+
+ startX: 10; startY: 100
+ PathArc {
+ x: 60; y: 150
+ radiusX: 50; radiusY: 50
+ useLargeArc: model.index === 1
+ }
+ }
}
}
}
- }
- }
- Item {
- width: 200
- height: 100
-
- Repeater {
- model: 2
- Shape {
- anchors.fill: parent
- vendorExtensionsEnabled: false
-
- ShapePath {
- fillColor: "gray"
- strokeColor: model.index === 0 ? "red" : "blue"
- strokeStyle: ShapePath.DashLine
- strokeWidth: 4
-
- startX: 50; startY: 150
- PathArc {
- x: 150; y: 150
- radiusX: 50; radiusY: 20
- xAxisRotation: model.index === 0 ? 0 : 45
+ Item {
+ width: 160
+ height: 100
+
+ Repeater {
+ model: 2
+ Shape {
+ anchors.fill: parent
+ preferredRendererType: renderer
+
+ ShapePath {
+ fillColor: "gray"
+ strokeColor: model.index === 0 ? "red" : "blue"
+ strokeStyle: ShapePath.DashLine
+ strokeWidth: 4
+
+ startX: 30; startY: 150
+ PathArc {
+ x: 130; y: 150
+ radiusX: 50; radiusY: 20
+ xAxisRotation: model.index === 0 ? 0 : 45
+ }
+ }
}
}
- }
- }
- Repeater {
- model: 2
- Shape {
- anchors.fill: parent
- vendorExtensionsEnabled: false
-
- ShapePath {
- fillColor: "lightGray"
- strokeColor: model.index === 0 ? "red" : "blue"
-
- startX: 50; startY: 150
- PathArc {
- x: 150; y: 150
- radiusX: 50; radiusY: 20
- xAxisRotation: model.index === 0 ? 0 : 45
- direction: PathArc.Counterclockwise
+ Repeater {
+ model: 2
+ Shape {
+ anchors.fill: parent
+ preferredRendererType: renderer
+
+ ShapePath {
+ fillColor: "lightGray"
+ strokeColor: model.index === 0 ? "red" : "blue"
+
+ startX: 30; startY: 150
+ PathArc {
+ x: 130; y: 150
+ radiusX: 50; radiusY: 20
+ xAxisRotation: model.index === 0 ? 0 : 45
+ direction: PathArc.Counterclockwise
+ }
+ }
}
}
}