diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2017-03-28 16:24:02 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2017-03-30 09:29:22 +0000 |
commit | 1c834f1d6bfe78ba30f4ee733a65b43029632df9 (patch) | |
tree | cda35a7f2b67a324c248c8b96e1076446c8f894f /tests/manual/scenegraph_lancelot/data/pathitem/pathitem_arc_fill.qml | |
parent | 4cddb73882ed950f652fd1e079bc4cf8ccde93d5 (diff) |
Add some Lancelot tests for PathItem
Change-Id: Ifec23f855d4c3e0c58e59777cf23149ad99a2b91
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'tests/manual/scenegraph_lancelot/data/pathitem/pathitem_arc_fill.qml')
-rw-r--r-- | tests/manual/scenegraph_lancelot/data/pathitem/pathitem_arc_fill.qml | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/tests/manual/scenegraph_lancelot/data/pathitem/pathitem_arc_fill.qml b/tests/manual/scenegraph_lancelot/data/pathitem/pathitem_arc_fill.qml new file mode 100644 index 0000000000..b1e1ed741b --- /dev/null +++ b/tests/manual/scenegraph_lancelot/data/pathitem/pathitem_arc_fill.qml @@ -0,0 +1,119 @@ +import QtQuick 2.9 + +Item { + width: 320 + height: 480 + + Column { + Item { + width: 200 + height: 100 + + Repeater { + model: 2 + PathItem { + anchors.fill: parent + enableVendorExtensions: false + + VisualPath { + fillColor: "lightBlue" + strokeColor: model.index === 0 ? "red" : "blue" + strokeStyle: VisualPath.DashLine + strokeWidth: 4 + + Path { + 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 + PathItem { + anchors.fill: parent + enableVendorExtensions: false + + VisualPath { + fillColor: "green" + strokeColor: model.index === 0 ? "red" : "blue" + strokeStyle: VisualPath.DashLine + strokeWidth: 4 + + Path { + startX: 50; startY: 100 + PathArc { + x: 100; y: 150 + radiusX: 50; radiusY: 50 + useLargeArc: model.index === 1 + } + } + } + } + } + } + + Item { + width: 200 + height: 100 + + Repeater { + model: 2 + PathItem { + anchors.fill: parent + enableVendorExtensions: false + + VisualPath { + fillColor: "gray" + strokeColor: model.index === 0 ? "red" : "blue" + strokeStyle: VisualPath.DashLine + strokeWidth: 4 + + Path { + startX: 50; startY: 150 + PathArc { + x: 150; y: 150 + radiusX: 50; radiusY: 20 + xAxisRotation: model.index === 0 ? 0 : 45 + } + } + } + } + } + + Repeater { + model: 2 + PathItem { + anchors.fill: parent + enableVendorExtensions: false + + VisualPath { + fillColor: "lightGray" + strokeColor: model.index === 0 ? "red" : "blue" + + Path { + startX: 50; startY: 150 + PathArc { + x: 150; y: 150 + radiusX: 50; radiusY: 20 + xAxisRotation: model.index === 0 ? 0 : 45 + direction: PathArc.Counterclockwise + } + } + } + } + } + } + } +} |