From 6be176728e8bf17a2714b6d79f7442a485f385ec Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 30 Jan 2024 17:08:58 +0100 Subject: BorderItem: Workaround for QDS-11845 Change-Id: I569751cc81e37d983bfb5f2afe9cd6ffe1c7579a Reviewed-by: Thomas Hartmann --- src/imports/components/BorderItem.qml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/imports/components/BorderItem.qml b/src/imports/components/BorderItem.qml index 5644bbf..b876659 100644 --- a/src/imports/components/BorderItem.qml +++ b/src/imports/components/BorderItem.qml @@ -199,7 +199,6 @@ Shape { \sa Qt::PenStyle */ - property alias strokeStyle: path.strokeStyle /*! The width of the border line. @@ -256,7 +255,13 @@ 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.SquareCap //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 starting point of the dash pattern for the border line. @@ -288,7 +293,6 @@ Shape { \sa Qt::PenCapStyle */ - property alias capStyle: path.capStyle //property alias fillColor: path.fillColor @@ -388,7 +392,9 @@ Shape { return 0 } - joinStyle: ShapePath.MiterJoin + capStyle: root.capStyle + strokeStyle: root.strokeStyle + joinStyle: root.joinStyle strokeWidth: 4 strokeColor: "red" -- cgit v1.2.3