diff options
| author | Sze Howe Koh <szehowe.koh@gmail.com> | 2022-09-13 11:53:42 +0800 |
|---|---|---|
| committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-06-07 05:25:14 +0000 |
| commit | 2f1131c089cf18a88a07bfbd3652258bef9b5080 (patch) | |
| tree | aa9d1af4f7d116331e83717b4b0b8d14436e8067 /src/quick/items/context2d/qquickcontext2d.cpp | |
| parent | e540296e61e2ea9e36df4508addf4ab19a5c63d7 (diff) | |
Doc: Fix mislabelled diagram for Context2D.arc()
Previously, the text showed:
Pi/2 -> Pi -> 3Pi/2 -> 2Pi
But the curves showed:
3Pi/2 -> Pi -> Pi/2 -> 2Pi
The curves are now drawn in a clockwise sequence to match the text.
Change-Id: Ib8fe0c17c652a0f357d27372403440f4dd031516
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
(cherry picked from commit 0c615d61ba4705894c2d25c5fc7a2ed406bd5942)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/quick/items/context2d/qquickcontext2d.cpp')
| -rw-r--r-- | src/quick/items/context2d/qquickcontext2d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/items/context2d/qquickcontext2d.cpp b/src/quick/items/context2d/qquickcontext2d.cpp index 7c309bef35..0105b6b9d3 100644 --- a/src/quick/items/context2d/qquickcontext2d.cpp +++ b/src/quick/items/context2d/qquickcontext2d.cpp @@ -2350,8 +2350,8 @@ QV4::ReturnedValue QQuickJSContext2DPrototype::method_strokeRect(const QV4::Func \image qml-item-canvas-startAngle.png - The \a anticlockwise parameter is \c true for each arc in the figure above - because they are all drawn in the anticlockwise direction. + The \a anticlockwise parameter is \c false for each arc in the figure above + because they are all drawn in the clockwise direction. \sa arcTo, {http://www.w3.org/TR/2dcontext/#dom-context-2d-arc}{W3C's 2D Context Standard for arc()} |
