summaryrefslogtreecommitdiffstats
path: root/src/corelib/animation/qanimationgroup.cpp
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2009-05-19 11:41:22 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2009-05-19 11:44:38 (GMT)
commit1c64881836a7003b20e0da97b95c94394c476525 (patch)
treed72c91a22e21944df74c5f92e290bbf65fb3a809 /src/corelib/animation/qanimationgroup.cpp
parentad17d5fcaa5984e7f11e3c8a514a24264890c827 (diff)
downloadQt-1c64881836a7003b20e0da97b95c94394c476525.zip
Qt-1c64881836a7003b20e0da97b95c94394c476525.tar.gz
Qt-1c64881836a7003b20e0da97b95c94394c476525.tar.bz2
Doc: Added information about ownership of animations.
Reviewed-by: Thierry Bastian
Diffstat (limited to 'src/corelib/animation/qanimationgroup.cpp')
-rw-r--r--src/corelib/animation/qanimationgroup.cpp21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/corelib/animation/qanimationgroup.cpp b/src/corelib/animation/qanimationgroup.cpp
index e0be3f7..e78ce9a 100644
--- a/src/corelib/animation/qanimationgroup.cpp
+++ b/src/corelib/animation/qanimationgroup.cpp
@@ -159,7 +159,7 @@ int QAnimationGroup::animationCount() const
Returns the index of \a animation. The returned index can be passed
to the other functions that take an index as an argument.
- \sa insertAnimationAt() animationAt(), takeAnimationAt()
+ \sa insertAnimationAt(), animationAt(), takeAnimationAt()
*/
int QAnimationGroup::indexOfAnimation(QAbstractAnimation *animation) const
{
@@ -169,7 +169,11 @@ int QAnimationGroup::indexOfAnimation(QAbstractAnimation *animation) const
/*!
Adds \a animation to this group. This will call insertAnimationAt with
- index equals to animationCount()
+ index equals to animationCount().
+
+ \note The group takes ownership of the animation.
+
+ \sa removeAnimation()
*/
void QAnimationGroup::addAnimation(QAbstractAnimation *animation)
{
@@ -181,7 +185,10 @@ void QAnimationGroup::addAnimation(QAbstractAnimation *animation)
Inserts \a animation into this animation group at \a index.
If \a index is 0 the animation is inserted at the beginning.
If \a index is animationCount(), the animation is inserted at the end.
- \sa takeAnimationAt(), addAnimation(), indexOfAnimation()
+
+ \note The group takes ownership of the animation.
+
+ \sa takeAnimationAt(), addAnimation(), indexOfAnimation(), removeAnimation()
*/
void QAnimationGroup::insertAnimationAt(int index, QAbstractAnimation *animation)
{
@@ -226,11 +233,11 @@ void QAnimationGroup::removeAnimation(QAbstractAnimation *animation)
}
/*!
- Removes the animation at \a index from this animation group. The ownership
- of the animation is transferred to the caller, and a pointer to the removed
- animation is returned.
+ Returns the animation at \a index and removes it from the animation group.
+
+ \note The ownership of the animation is transferred to the caller.
- \sa addAnimation()
+ \sa removeAnimation(), addAnimation(), insertAnimation(), indexOfAnimation()
*/
QAbstractAnimation *QAnimationGroup::takeAnimationAt(int index)
{