aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/shapes/joinStyles.qml
diff options
context:
space:
mode:
authorOliver Eftevaag <oliver.eftevaag@qt.io>2023-03-03 18:07:39 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-03-10 15:27:47 +0000
commit8ae4ab2e049b09d7330a7e0e0a4b20f216f6b90b (patch)
tree6a704b6df64b997999d1a8988edab636a7539092 /examples/quick/shapes/joinStyles.qml
parent2af9e2f77cbec6e704a1fcafe249c4df8a0215cb (diff)
Shapes example: adhere to guidelines
- Fix all qmllint warnings. (except for main.qml, interactive.qml, and sampling.qml) - Translate user facing strings when it makes sense to do so. - Mark readonly properties as 'readonly'. - Avoid binding on multiple properties on a single line. (except for tiger.qml). Change-Id: Idbf8a472ca5ba5385d1368aadd608e95231a07f0 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit e61d555a6d3b0796be725d4ee7190e8d4331ba38) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/quick/shapes/joinStyles.qml')
-rw-r--r--examples/quick/shapes/joinStyles.qml14
1 files changed, 10 insertions, 4 deletions
diff --git a/examples/quick/shapes/joinStyles.qml b/examples/quick/shapes/joinStyles.qml
index 4d6410f059..127cb50fbe 100644
--- a/examples/quick/shapes/joinStyles.qml
+++ b/examples/quick/shapes/joinStyles.qml
@@ -23,15 +23,21 @@ Rectangle {
capStyle: ShapePath.RoundCap
property int joinStyleIdx: 0
- property variant styles: [ ShapePath.BevelJoin, ShapePath.MiterJoin, ShapePath.RoundJoin ]
- property variant styleTexts: [ "BevelJoin", "MiterJoin", "RoundJoin" ]
+ readonly property variant styles: [ ShapePath.BevelJoin, ShapePath.MiterJoin, ShapePath.RoundJoin ]
+ readonly property variant styleTexts: [ qsTr("BevelJoin"), qsTr("MiterJoin"), qsTr("RoundJoin") ]
joinStyle: styles[joinStyleIdx]
startX: 30
startY: 30
- PathLine { x: 100; y: 100 }
- PathLine { x: 30; y: 100 }
+ PathLine {
+ x: 100
+ y: 100
+ }
+ PathLine {
+ x: 30
+ y: 100
+ }
}
}