diff options
author | axis <qt-info@nokia.com> | 2009-11-12 16:07:11 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-11-12 16:07:11 (GMT) |
commit | 97c76cf8a3320d6e99126965287697f8a14de4d7 (patch) | |
tree | 5f07c9d2bc99c2bd43fe462458d8423fb14715be /src/corelib | |
parent | 771672fa1a94a9b2b19e378d1b362dcdae323887 (diff) | |
parent | 8e589bc0aa6df55052e37b3107f2f03a1dc17d06 (diff) | |
download | Qt-97c76cf8a3320d6e99126965287697f8a14de4d7.zip Qt-97c76cf8a3320d6e99126965287697f8a14de4d7.tar.gz Qt-97c76cf8a3320d6e99126965287697f8a14de4d7.tar.bz2 |
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.6-s60
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/animation/qpropertyanimation.cpp | 10 | ||||
-rw-r--r-- | src/corelib/animation/qsequentialanimationgroup.cpp | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/corelib/animation/qpropertyanimation.cpp b/src/corelib/animation/qpropertyanimation.cpp index 3065083..013ff7f 100644 --- a/src/corelib/animation/qpropertyanimation.cpp +++ b/src/corelib/animation/qpropertyanimation.cpp @@ -58,12 +58,12 @@ an example: \code - QPropertyAnimation animation(myWidget, "geometry"); - animation.setDuration(10000); - animation.setStartValue(QRect(0, 0, 100, 30)); - animation.setEndValue(QRect(250, 250, 100, 30)); + QPropertyAnimation *animation = new QPropertyAnimation(myWidget, "geometry"); + animation->setDuration(10000); + animation->setStartValue(QRect(0, 0, 100, 30)); + animation->setEndValue(QRect(250, 250, 100, 30)); - animation.start(); + animation->start(); \endcode The property name and the QObject instance of which property diff --git a/src/corelib/animation/qsequentialanimationgroup.cpp b/src/corelib/animation/qsequentialanimationgroup.cpp index 861e26e..5dbb8c3 100644 --- a/src/corelib/animation/qsequentialanimationgroup.cpp +++ b/src/corelib/animation/qsequentialanimationgroup.cpp @@ -63,12 +63,12 @@ pause to a sequential animation group. \code - QSequentialAnimationGroup group; + QSequentialAnimationGroup *group = new QSequentialAnimationGroup; - group.addAnimation(anim1); - group.addAnimation(anim2); + group->addAnimation(anim1); + group->addAnimation(anim2); - group.start(); + group->start(); \endcode In this example, \c anim1 and \c anim2 are two already set up |