diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-04-01 04:46:04 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-04-01 04:46:04 (GMT) |
commit | 006d3ee14b37f243ef4765d4252cfb1a61648f14 (patch) | |
tree | 964d6b00f994f61628e20dbc7290f36f1a836598 /src | |
parent | 4d523c7cb2d3322c3b4512148b9d34ca5fe34225 (diff) | |
download | Qt-006d3ee14b37f243ef4765d4252cfb1a61648f14.zip Qt-006d3ee14b37f243ef4765d4252cfb1a61648f14.tar.gz Qt-006d3ee14b37f243ef4765d4252cfb1a61648f14.tar.bz2 |
Fix Rectangle::gradient rotation doc.
Task-number: QTBUG-9553
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativerectangle.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativerectangle.cpp b/src/declarative/graphicsitems/qdeclarativerectangle.cpp index b82fb53..8fbaa22 100644 --- a/src/declarative/graphicsitems/qdeclarativerectangle.cpp +++ b/src/declarative/graphicsitems/qdeclarativerectangle.cpp @@ -228,13 +228,12 @@ QDeclarativePen *QDeclarativeRectangle::border() GradientStop { position: 1.0; color: "blue" } } } - Rectangle { rotation: 90; x: 80; y: 200; width: 80; height: 80 + Rectangle { rotation: 90; y: 200; width: 80; height: 80 gradient: Gradient { GradientStop { position: 0.0; color: "lightsteelblue" } GradientStop { position: 1.0; color: "blue" } } } - // The x offset is needed because the rotation is from the top left corner \endqml \endtable |