PathCurve documentation: fix non-working example snippet
authorTopi Reinio <topi.reinio@digia.com>
Tue, 15 Jan 2013 10:31:38 +0000 (11:31 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 17 Jan 2013 19:22:17 +0000 (20:22 +0100)
Set the contextType property in the example code that demonstrates
using PathCurve with Canvas; without it the code doesn't work.

Task-number: QTBUG-29114
Change-Id: I75be931d5a30a26efceb2c2493f5e41d092dbbc5
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>

src/quick/doc/snippets/qml/path/basiccurve.qml

index 4a97f1b..ca554c5 100644 (file)
@@ -43,6 +43,7 @@ import QtQuick 2.0
 
 Canvas {
     width: 400; height: 200
+    contextType: "2d"
 
     Path {
         id: myPath