diff options
Diffstat (limited to 'tests/baseline/scenegraph/data/shape/shape_text.qml')
-rw-r--r-- | tests/baseline/scenegraph/data/shape/shape_text.qml | 137 |
1 files changed, 74 insertions, 63 deletions
diff --git a/tests/baseline/scenegraph/data/shape/shape_text.qml b/tests/baseline/scenegraph/data/shape/shape_text.qml index 37367054b5..427c78c8d0 100644 --- a/tests/baseline/scenegraph/data/shape/shape_text.qml +++ b/tests/baseline/scenegraph/data/shape/shape_text.qml @@ -1,88 +1,99 @@ import QtQuick 2.15 -import QtQuick.Shapes 1.0 +import QtQuick.Shapes 6.6 Item { width: 320 height: 480 - Column { - Item { - width: 200 - height: 160 + ListModel { + id: renderers + ListElement { renderer: Shape.GeometryRenderer } + ListElement { renderer: Shape.CurveRenderer } + } + + Row { + Repeater { + model: renderers + Column { + Item { + width: 160 + height: 160 - Shape { - anchors.fill: parent - vendorExtensionsEnabled: false + Shape { + anchors.fill: parent + preferredRendererType: renderer - ShapePath { - fillColor: "transparent" - strokeColor: "blue" - strokeStyle: ShapePath.DashLine - strokeWidth: 4 + ShapePath { + fillColor: "transparent" + strokeColor: "blue" + strokeStyle: ShapePath.DashLine + strokeWidth: 4 - PathText { - x: 96 - y: 10 - font.pixelSize: 120 - text: "Qt" + PathText { + x: 24 + y: 10 + font.pixelSize: 96 + text: "Qt" + } + } } } - } - } - Item { - width: 200 - height: 160 + Item { + width: 100 + height: 160 - Rectangle { - anchors.fill: parent - color: "blue" - } + Rectangle { + anchors.fill: parent + color: "blue" + } - Shape { - anchors.fill: parent - vendorExtensionsEnabled: false + Shape { + anchors.fill: parent + preferredRendererType: renderer - ShapePath { - fillColor: "red" - strokeColor: "blue" - strokeStyle: ShapePath.DashLine - capStyle: ShapePath.RoundCap - strokeWidth: 8 + ShapePath { + fillColor: "red" + strokeColor: "blue" + strokeStyle: ShapePath.DashLine + capStyle: ShapePath.RoundCap + strokeWidth: 4 - PathText { - x: 96; y: 10 - font.pixelSize: 150 - text: "Qt" + PathText { + x: 24; y: 10 + font.pixelSize: 96 + text: "Qt" + } + } } } - } - } - Item { - width: 200 - height: 160 + Item { + width: 160 + height: 160 - Shape { - anchors.fill: parent - vendorExtensionsEnabled: false + Shape { + anchors.fill: parent + preferredRendererType: renderer - ShapePath { - fillGradient: LinearGradient { - x1: 0; x2: 200; y1: 0; y2: 160 - spread: ShapeGradient.PadSpread - GradientStop { position: 0.0; color: "red"; } - GradientStop { position: 1.0; color: "green"; } - } - strokeColor: "blue" - strokeStyle: ShapePath.DashLine - joinStyle: ShapePath.RoundJoin - strokeWidth: 4 + ShapePath { + fillGradient: LinearGradient { + x1: 0; x2: 200; y1: 0; y2: 160 + spread: ShapeGradient.PadSpread + GradientStop { position: 0.0; color: "red"; } + GradientStop { position: 1.0; color: "green"; } + } + strokeColor: "blue" + strokeStyle: ShapePath.DashLine + joinStyle: ShapePath.RoundJoin + strokeWidth: 4 - PathText { - x: 96; y: 10 - font.pixelSize: 150 - text: "Qt" + PathText { + x: 24; y: 10 + font.pixelSize: 96 + text: "Qt" + } + } } } } |