diff options
author | Kavindra Devi Palaraja <kavindra.palaraja@nokia.com> | 2009-08-25 15:38:02 (GMT) |
---|---|---|
committer | Kavindra Devi Palaraja <kavindra.palaraja@nokia.com> | 2009-08-25 15:38:02 (GMT) |
commit | 7aefaa2d4c4f192e033ec3323e2e2368af833248 (patch) | |
tree | 4eb521564b988af9820707eaef76731eed295c46 /src/gui/effects/qgraphicseffect.cpp | |
parent | ad339905faf25e0f960ae554367b971b2e5c7731 (diff) | |
download | Qt-7aefaa2d4c4f192e033ec3323e2e2368af833248.zip Qt-7aefaa2d4c4f192e033ec3323e2e2368af833248.tar.gz Qt-7aefaa2d4c4f192e033ec3323e2e2368af833248.tar.bz2 |
Doc - Removed a trailing whitespace and more cleanups
Reviewed-By: TrustMe
Diffstat (limited to 'src/gui/effects/qgraphicseffect.cpp')
-rw-r--r-- | src/gui/effects/qgraphicseffect.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/gui/effects/qgraphicseffect.cpp b/src/gui/effects/qgraphicseffect.cpp index 3274f4d..a6aef52 100644 --- a/src/gui/effects/qgraphicseffect.cpp +++ b/src/gui/effects/qgraphicseffect.cpp @@ -80,23 +80,18 @@ function accepts two arguments: the painter and a pointer to the source (QGraphicsEffectSource). The source provides extra context information, such as a pointer to the item that is rendering the effect, any cached - pixmap data, or the device rect bounds. For more information, refer to the - documenation for draw(). To obtain a pointer to the current source, simply - call source(). + pixmap data, or the device rectangle bounds. For more information, refer to + the documenation for draw(). To obtain a pointer to the current source, + simply call source(). If your effect changes, use update() to request for a redraw. If your custom effect changes the bounding rectangle of the source, e.g., a radial - glow effect may need to apply an extra margin, - - - If your effect changes, you can call update() to request a redraw. If your - custom effect changes the bounding rectangle of the source (e.g., a radial - glow effect may need to apply an extra margin), you can reimplement the + glow effect may need to apply an extra margin, you can reimplement the virtual boundingRectFor() function, and call updateBoundingRect() to notify the framework whenever this rectangle changes. The virtual sourceBoundingRectChanged() function is called to notify the effects that - the source's bounding rectangle has changed (e.g., if the source is a - QGraphicsRectItem, then if the rectangle parameters have changed). + the source's bounding rectangle has changed - e.g., if the source is a + QGraphicsRectItem and its rectangle parameters have changed. \sa QGraphicsItem::setGraphicsEffect(), QWidget::setGraphicsEffect(), QGraphicsEffectSource |