aboutsummaryrefslogtreecommitdiffstats
path: root/tests/baseline/scenegraph/data/shape/shape_boundingrect_square_cap.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/baseline/scenegraph/data/shape/shape_boundingrect_square_cap.qml')
-rw-r--r--tests/baseline/scenegraph/data/shape/shape_boundingrect_square_cap.qml45
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/baseline/scenegraph/data/shape/shape_boundingrect_square_cap.qml b/tests/baseline/scenegraph/data/shape/shape_boundingrect_square_cap.qml
new file mode 100644
index 0000000000..d4c714cb86
--- /dev/null
+++ b/tests/baseline/scenegraph/data/shape/shape_boundingrect_square_cap.qml
@@ -0,0 +1,45 @@
+import QtQuick
+import QtQuick.Shapes
+
+Item {
+ width: 620
+ height: 400
+ transformOrigin: Item.TopLeft
+
+ property var svgPaths: [
+ "M 0 25 L 200 25",
+ "M 0 0 L 215 125",
+ "M 0 0 L 175 175",
+ "M 100 0 Q 200 0 200 75 Q 200 150 100 150 Q 0 150 0 75 Q 0 0 100 0 z",
+ "M 50 0 L 50 150"
+ ]
+
+ Flow {
+ anchors.fill: parent
+ padding: 25
+ spacing: 25
+ Repeater {
+ model: svgPaths
+ Shape {
+ preferredRendererType: Shape.CurveRenderer
+ ShapePath {
+ strokeColor: "red"
+ strokeWidth: 22
+ fillColor: "gray"
+ capStyle: ShapePath.SquareCap
+ PathSvg { path: modelData }
+ }
+ Rectangle {
+ color: "transparent"
+ border.color: "blue"
+ border.width: 2
+ x: parent.boundingRect.x
+ y: parent.boundingRect.y
+ width: parent.boundingRect.width
+ height: parent.boundingRect.height
+ }
+ }
+ }
+
+ }
+}