diff options
Diffstat (limited to 'examples/quick/animation/pathanimation/pathanimation.qml')
-rw-r--r-- | examples/quick/animation/pathanimation/pathanimation.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/animation/pathanimation/pathanimation.qml b/examples/quick/animation/pathanimation/pathanimation.qml index 1f3577a47c..b366f8178d 100644 --- a/examples/quick/animation/pathanimation/pathanimation.qml +++ b/examples/quick/animation/pathanimation/pathanimation.qml @@ -15,7 +15,7 @@ Rectangle { antialiasing: true onPaint: { - var context = canvas.getContext("2d") + let context = canvas.getContext("2d") context.clearRect(0, 0, width, height) context.strokeStyle = "black" context.path = pathAnim.path @@ -65,7 +65,7 @@ Rectangle { Text { anchors.centerIn: parent - text: "Box" + text: qsTr("Box") } } } |