aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2024-01-30 17:10:32 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2024-01-31 13:41:34 +0000
commit4c2bf9cd68f9a5cf1f8ee9bcf44ea47538544ab9 (patch)
tree09940ad117a37293b53957bf5144906c055d9e3c
parent994df98c8564e79b82da4657e6d12c37cea660f1 (diff)
TriangleItem: Workaround for QDS-11845
Change-Id: I1f343f69d866b7ddbfeda5d7213de7bf7e60212e Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r--src/imports/components/TriangleItem.qml13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/imports/components/TriangleItem.qml b/src/imports/components/TriangleItem.qml
index 8dc57a1..df170cc 100644
--- a/src/imports/components/TriangleItem.qml
+++ b/src/imports/components/TriangleItem.qml
@@ -129,7 +129,6 @@ Shape {
\sa Qt::PenStyle
*/
- property alias strokeStyle: path.strokeStyle
/*!
The width of the border of the rectangle.
@@ -187,7 +186,12 @@ Shape {
\sa Qt::PenJoinStyle
*/
- property alias joinStyle: path.joinStyle
+ //property alias joinStyle: path.joinStyle
+ property int joinStyle: ShapePath.MiterJoin //workaround for regression in Qt 6.6.1 (QDS-11845)
+ //property alias capStyle: path.capStyle
+ property int capStyle: ShapePath.FlatCap //workaround for regression in Qt 6.6.1 (QDS-11845)
+ //property alias strokeStyle: path.strokeStyle
+ property int strokeStyle: ShapePath.SolidLine //workaround for regression in Qt 6.6.1 (QDS-11845)
/*!
The triangle fill color.
@@ -328,8 +332,9 @@ Shape {
strokeWidth: 4
strokeColor: "red"
- capStyle: ShapePath.FlatCap
- joinStyle: ShapePath.MiterJoin
+ capStyle: root.capStyle
+ strokeStyle: root.strokeStyle
+ joinStyle: root.joinStyle
startX: root.topIntersection1.x + path.xOffset
startY: root.topIntersection1.y + path.yOffset