aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2024-01-30 17:08:58 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2024-01-31 13:41:34 +0000
commit6be176728e8bf17a2714b6d79f7442a485f385ec (patch)
tree1f3ba63106a81b00daab7a4456ca281b2c39559c
parentad878d1419bf8ca00c79c5934d7f2aa2aedad23e (diff)
BorderItem: Workaround for QDS-11845
Change-Id: I569751cc81e37d983bfb5f2afe9cd6ffe1c7579a Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r--src/imports/components/BorderItem.qml14
1 files 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"