summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-12-08 10:39:31 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-12-08 10:39:31 (GMT)
commit4f6dc78fb05026608ffb03dfae905c23a48aac43 (patch)
tree9c64344f8e7cd80f873dc142c81058b49c249204 /src
parent2e110daa8fb3889036db330837884a6aa61a92a1 (diff)
downloadQt-4f6dc78fb05026608ffb03dfae905c23a48aac43.zip
Qt-4f6dc78fb05026608ffb03dfae905c23a48aac43.tar.gz
Qt-4f6dc78fb05026608ffb03dfae905c23a48aac43.tar.bz2
Doc: Explicitly mention that QWidget/QGraphicsItem takes ownership of effects.
Diffstat (limited to 'src')
-rw-r--r--src/gui/graphicsview/qgraphicsitem.cpp2
-rw-r--r--src/gui/kernel/qwidget.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.cpp b/src/gui/graphicsview/qgraphicsitem.cpp
index 9846dbb..90cc132 100644
--- a/src/gui/graphicsview/qgraphicsitem.cpp
+++ b/src/gui/graphicsview/qgraphicsitem.cpp
@@ -2554,6 +2554,8 @@ QGraphicsEffect *QGraphicsItem::graphicsEffect() const
If \a effect is the installed on a different item, setGraphicsEffect() will remove
the effect from the item and install it on this item.
+ QGraphicsItem takes ownership of \a effect.
+
\note This function will apply the effect on itself and all its children.
\since 4.6
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index 00c7dc0..21aae3e 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -5046,6 +5046,8 @@ QGraphicsEffect *QWidget::graphicsEffect() const
If \a effect is the installed on a different widget, setGraphicsEffect() will remove
the effect from the widget and install it on this widget.
+ QWidget takes ownership of \a effect.
+
\note This function will apply the effect on itself and all its children.
\since 4.6