Fix example to clear rect before painting.
authorMichael Brasser <michael.brasser@nokia.com>
Thu, 2 Feb 2012 23:17:43 +0000 (09:17 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 7 Feb 2012 05:38:33 +0000 (06:38 +0100)
Change-Id: Iecefc9bb38957ec463edb575f4495275aae7c57e
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
examples/declarative/animation/pathinterpolator/pathinterpolator.qml

index e49ecb1..67a34ce 100644 (file)
@@ -51,6 +51,7 @@ Rectangle {
         smooth: true
 
         onPaint: {
+            context.clearRect(0, 0, width, height)
             context.strokeStyle = "black"
             context.path = motionPath.path
             context.stroke()