From 0d587c2941b7f59a5220d06a71d27fa611901342 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 30 Jan 2024 17:07:22 +0100 Subject: PieItem: Workaround for QDS-11845 Change-Id: Ic349ec6b6e1d739aed31aff20a870e668cda6570 Reviewed-by: Thomas Hartmann --- src/imports/components/PieItem.qml | 14 ++++++++++---- 1 file 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 -- cgit v1.2.3