diff options
author | Richard Moore <rich@kde.org> | 2012-08-26 13:34:15 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-29 23:02:05 +0200 |
commit | 7f324c4979bf83d68a18cbb4f8cd45752deb2e7c (patch) | |
tree | ae946eefd445ea90fe3df8e05afba5ea2c91d648 /src/widgets | |
parent | 1e97dbaf6ca807397e3ec77a3611763769499d17 (diff) |
Document how to remove a QGraphicsEffect.
You can remove an effect by setting 0, but this wasn't documented.
Change-Id: I2d86875d8554cb26b4d88b8ce04b4daa9792c5d5
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/graphicsview/qgraphicsitem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/graphicsview/qgraphicsitem.cpp b/src/widgets/graphicsview/qgraphicsitem.cpp index a94752e7a6..27cd4e62ca 100644 --- a/src/widgets/graphicsview/qgraphicsitem.cpp +++ b/src/widgets/graphicsview/qgraphicsitem.cpp @@ -2712,7 +2712,8 @@ QGraphicsEffect *QGraphicsItem::graphicsEffect() const /*! Sets \a effect as the item's effect. If there already is an effect installed on this item, QGraphicsItem will delete the existing effect before installing - the new \a effect. + the new \a effect. You can delete an existing effect by calling + setGraphicsEffect(0). If \a effect is the installed on a different item, setGraphicsEffect() will remove the effect from the item and install it on this item. |