diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2024-01-30 17:07:22 +0100 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2024-01-31 13:41:34 +0000 |
commit | 0d587c2941b7f59a5220d06a71d27fa611901342 (patch) | |
tree | 0bdc250f091675d16381ea2c82724342406555c8 | |
parent | 4c2bf9cd68f9a5cf1f8ee9bcf44ea47538544ab9 (diff) |
PieItem: Workaround for QDS-11845
Change-Id: Ic349ec6b6e1d739aed31aff20a870e668cda6570
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r-- | src/imports/components/PieItem.qml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/imports/components/PieItem.qml b/src/imports/components/PieItem.qml index 1dc0cdd..230ccf5 100644 --- a/src/imports/components/PieItem.qml +++ b/src/imports/components/PieItem.qml @@ -125,7 +125,13 @@ Shape { \sa Qt::PenStyle */ - property alias strokeStyle: path.strokeStyle + + //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 width of the line. @@ -167,7 +173,6 @@ Shape { \sa QPen::setDashPattern() */ property alias dashPattern: path.dashPattern - property alias joinStyle: path.joinStyle /*! The pie fill color. @@ -217,7 +222,6 @@ Shape { \sa Qt::PenCapStyle */ - property alias capStyle: path.capStyle /*! The position in degrees where the pie begins. @@ -285,7 +289,9 @@ Shape { property real __yCenter: root.height / 2 strokeColor: "red" - capStyle: ShapePath.FlatCap + capStyle: root.capStyle + strokeStyle: root.strokeStyle + joinStyle: root.joinStyle strokeWidth: 4 |