diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2024-01-30 17:05:17 +0100 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2024-01-31 16:32:08 +0000 |
commit | 41e60b9dc50f8841a594de9f95ff559b31e02fdc (patch) | |
tree | 5e2d752e4c5c9bfb8656ef8cc71e237a746a059d | |
parent | 3825a067fc3403a5ffb73fd38db7d25498662968 (diff) |
ArcItem: Workaround for QDS-11845
Change-Id: I0e2d0ef4987d6ec121f3718f03383a9e20787ac2
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r-- | src/imports/components/ArcItem.qml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/imports/components/ArcItem.qml b/src/imports/components/ArcItem.qml index 473a2f8..6dd010f 100644 --- a/src/imports/components/ArcItem.qml +++ b/src/imports/components/ArcItem.qml @@ -148,7 +148,6 @@ Shape { \sa Qt::PenStyle */ - property alias strokeStyle: path.strokeStyle /*! The width of the arc line or outline. @@ -194,7 +193,12 @@ Shape { */ property alias dashPattern: path.dashPattern - property alias joinStyle: path.joinStyle + //property alias joinStyle: path.joinStyle + property int joinStyle: ShapePath.BevelJoin //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 arc fill color. @@ -226,7 +230,7 @@ Shape { \sa round, roundBegin, roundEnd, Qt::PenCapStyle */ - property alias capStyle: path.capStyle + /*! The starting point of the dash pattern for the arc or arc outline. @@ -379,7 +383,9 @@ Shape { strokeColor: "red" strokeWidth: 4 - capStyle: ShapePath.FlatCap + capStyle: root.capStyle + strokeStyle: root.strokeStyle + joinStyle: root.joinStyle startX: root.polarToCartesianX(path.__xCenter, path.__yCenter, path.__xRadius, root.sortedBegin() - 90) startY: root.polarToCartesianY(path.__xCenter, path.__yCenter, path.__yRadius, root.sortedBegin() - 90) |