diff options
Diffstat (limited to 'tests/auto/quick/qquickpathitem/data')
-rw-r--r-- | tests/auto/quick/qquickpathitem/data/pathitem1.qml | 4 | ||||
-rw-r--r-- | tests/auto/quick/qquickpathitem/data/pathitem2.qml | 6 | ||||
-rw-r--r-- | tests/auto/quick/qquickpathitem/data/pathitem3.png | bin | 0 -> 5214 bytes | |||
-rw-r--r-- | tests/auto/quick/qquickpathitem/data/pathitem3.qml | 34 | ||||
-rw-r--r-- | tests/auto/quick/qquickpathitem/data/pathitem4.png | bin | 0 -> 5713 bytes | |||
-rw-r--r-- | tests/auto/quick/qquickpathitem/data/pathitem4.qml | 61 |
6 files changed, 105 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickpathitem/data/pathitem1.qml b/tests/auto/quick/qquickpathitem/data/pathitem1.qml new file mode 100644 index 0000000000..885ec7d323 --- /dev/null +++ b/tests/auto/quick/qquickpathitem/data/pathitem1.qml @@ -0,0 +1,4 @@ +import QtQuick 2.9 + +PathItem { +} diff --git a/tests/auto/quick/qquickpathitem/data/pathitem2.qml b/tests/auto/quick/qquickpathitem/data/pathitem2.qml new file mode 100644 index 0000000000..9f4a3b5957 --- /dev/null +++ b/tests/auto/quick/qquickpathitem/data/pathitem2.qml @@ -0,0 +1,6 @@ +import QtQuick 2.9 + +PathItem { + VisualPath { } + VisualPath { } +} diff --git a/tests/auto/quick/qquickpathitem/data/pathitem3.png b/tests/auto/quick/qquickpathitem/data/pathitem3.png Binary files differnew file mode 100644 index 0000000000..a8b4483c96 --- /dev/null +++ b/tests/auto/quick/qquickpathitem/data/pathitem3.png diff --git a/tests/auto/quick/qquickpathitem/data/pathitem3.qml b/tests/auto/quick/qquickpathitem/data/pathitem3.qml new file mode 100644 index 0000000000..69a56dd488 --- /dev/null +++ b/tests/auto/quick/qquickpathitem/data/pathitem3.qml @@ -0,0 +1,34 @@ +import QtQuick 2.9 + +Item { + width: 200 + height: 150 + + PathItem { + enableVendorExtensions: false + objectName: "pathItem" + anchors.fill: parent + + 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" } + } + 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 } + } + } + } +} diff --git a/tests/auto/quick/qquickpathitem/data/pathitem4.png b/tests/auto/quick/qquickpathitem/data/pathitem4.png Binary files differnew file mode 100644 index 0000000000..3a988ba249 --- /dev/null +++ b/tests/auto/quick/qquickpathitem/data/pathitem4.png diff --git a/tests/auto/quick/qquickpathitem/data/pathitem4.qml b/tests/auto/quick/qquickpathitem/data/pathitem4.qml new file mode 100644 index 0000000000..74f0ca7408 --- /dev/null +++ b/tests/auto/quick/qquickpathitem/data/pathitem4.qml @@ -0,0 +1,61 @@ +import QtQuick 2.9 + +Item { + width: 200 + height: 150 + + PathItem { + enableVendorExtensions: false + objectName: "pathItem" + anchors.fill: parent + + VisualPath { + strokeColor: "red" + fillColor: "green" + Path { + startX: 40; startY: 30 + PathQuad { x: 50; y: 80; controlX: 0; controlY: 80 } + PathLine { x: 150; y: 80 } + PathQuad { x: 160; y: 30; controlX: 200; controlY: 80 } + } + } + + VisualPath { + strokeWidth: 10 + fillColor: "transparent" + strokeColor: "blue" + Path { + startX: 40; startY: 30 + PathCubic { x: 50; y: 80; control1X: 0; control1Y: 80; control2X: 100; control2Y: 100 } + } + } + + VisualPath { + fillGradient: PathLinearGradient { + y2: 150 + PathGradientStop { position: 0; color: "yellow" } + PathGradientStop { position: 1; color: "green" } + } + + Path { + startX: 10; startY: 100 + PathArc { + relativeX: 50; y: 100 + radiusX: 25; radiusY: 25 + } + PathArc { + relativeX: 50; y: 100 + radiusX: 25; radiusY: 35 + } + PathArc { + relativeX: 50; y: 100 + radiusX: 25; radiusY: 60 + } + PathArc { + relativeX: 50; y: 100 + radiusX: 50; radiusY: 120 + } + } + } + } +} |