diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2012-02-03 09:17:43 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-07 06:38:33 +0100 |
commit | 96860e3c9e425730aeb241ad7e1a5392164aea55 (patch) | |
tree | 06f230855ee5517435d8ab6b30925f5ac3eef375 | |
parent | 51b7425329e0fa221c319e8d75595c19f664aedb (diff) |
Fix example to clear rect before painting.
Change-Id: Iecefc9bb38957ec463edb575f4495275aae7c57e
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
-rw-r--r-- | examples/declarative/animation/pathinterpolator/pathinterpolator.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/declarative/animation/pathinterpolator/pathinterpolator.qml b/examples/declarative/animation/pathinterpolator/pathinterpolator.qml index e49ecb1fd4..67a34ce582 100644 --- a/examples/declarative/animation/pathinterpolator/pathinterpolator.qml +++ b/examples/declarative/animation/pathinterpolator/pathinterpolator.qml @@ -51,6 +51,7 @@ Rectangle { smooth: true onPaint: { + context.clearRect(0, 0, width, height) context.strokeStyle = "black" context.path = motionPath.path context.stroke() |