From 21c1cfb8674c0af9f52ef57c4fbd47f0bc78546f Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Tue, 15 Jan 2013 11:31:38 +0100 Subject: PathCurve documentation: fix non-working example snippet 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 Reviewed-by: Venugopal Shivashankar --- src/quick/doc/snippets/qml/path/basiccurve.qml | 1 + 1 file changed, 1 insertion(+) (limited to 'src/quick/doc') diff --git a/src/quick/doc/snippets/qml/path/basiccurve.qml b/src/quick/doc/snippets/qml/path/basiccurve.qml index 4a97f1bc96..ca554c56a0 100644 --- a/src/quick/doc/snippets/qml/path/basiccurve.qml +++ b/src/quick/doc/snippets/qml/path/basiccurve.qml @@ -43,6 +43,7 @@ import QtQuick 2.0 Canvas { width: 400; height: 200 + contextType: "2d" Path { id: myPath -- cgit v1.2.3