diff options
author | Topi Reinio <topi.reinio@digia.com> | 2013-01-15 11:31:38 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-17 20:22:17 +0100 |
commit | 21c1cfb8674c0af9f52ef57c4fbd47f0bc78546f (patch) | |
tree | 4bce849e4fe92206a717837810401e46329420a3 /src/quick/doc | |
parent | 9e11754fdceae18b49bf1b0947e48b5f81e85d59 (diff) |
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 <jerome.pasion@digia.com>
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
Diffstat (limited to 'src/quick/doc')
-rw-r--r-- | src/quick/doc/snippets/qml/path/basiccurve.qml | 1 |
1 files changed, 1 insertions, 0 deletions
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 |