diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-12-08 10:39:31 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-12-08 10:39:31 (GMT) |
commit | 4f6dc78fb05026608ffb03dfae905c23a48aac43 (patch) | |
tree | 9c64344f8e7cd80f873dc142c81058b49c249204 /src | |
parent | 2e110daa8fb3889036db330837884a6aa61a92a1 (diff) | |
download | Qt-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.cpp | 2 | ||||
-rw-r--r-- | src/gui/kernel/qwidget.cpp | 2 |
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 |