aboutsummaryrefslogtreecommitdiffstats
path: root/tests/baseline/scenegraph/data/shape/shape_cubic.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/baseline/scenegraph/data/shape/shape_cubic.qml')
-rw-r--r--tests/baseline/scenegraph/data/shape/shape_cubic.qml47
1 files changed, 29 insertions, 18 deletions
diff --git a/tests/baseline/scenegraph/data/shape/shape_cubic.qml b/tests/baseline/scenegraph/data/shape/shape_cubic.qml
index 1d2f9fd40d..8db08b4268 100644
--- a/tests/baseline/scenegraph/data/shape/shape_cubic.qml
+++ b/tests/baseline/scenegraph/data/shape/shape_cubic.qml
@@ -1,31 +1,42 @@
import QtQuick 2.9
-import QtQuick.Shapes 1.0
+import QtQuick.Shapes 6.6
Item {
width: 320
height: 480
- Column {
+ ListModel {
+ id: renderers
+ ListElement { renderer: Shape.GeometryRenderer }
+ ListElement { renderer: Shape.CurveRenderer }
+ }
+
+ Row {
Repeater {
- model: 4
- Item {
- width: 200
- height: 100
+ model: renderers
+ Column {
+ Repeater {
+ model: 4
+ Item {
+ width: 160
+ height: 100
- Shape {
- anchors.fill: parent
- vendorExtensionsEnabled: false
+ Shape {
+ anchors.fill: parent
+ preferredRendererType: renderer
- ShapePath {
- strokeWidth: (model.index + 2) * 2
- strokeColor: "black"
- fillColor: "lightBlue"
+ ShapePath {
+ strokeWidth: (model.index + 2) * 2
+ strokeColor: "black"
+ fillColor: "lightBlue"
- startX: 50; startY: 100
- PathCubic {
- x: 150; y: 100
- control1X: model.index * 10; control1Y: model.index * 5
- control2X: model.index * -10; control2Y: model.index * 10
+ startX: 30; startY: 100
+ PathCubic {
+ x: 130; y: 100
+ control1X: model.index * 10; control1Y: model.index * 5
+ control2X: model.index * -10; control2Y: model.index * 10
+ }
+ }
}
}
}